MCPcopy Create free account
hub / github.com/bazelbuild/bazel / setDebugger

Method setDebugger

src/main/java/net/starlark/java/eval/Debug.java:97–102  ·  view source on GitHub ↗

Installs a global hook that causes subsequently executed Starlark threads to notify the debugger of important events. Closes any previously set debugger. Call setDebugger(null) to disable debugging.

(Debugger dbg)

Source from the content-addressed store, hash-verified

95 * setDebugger(null)} to disable debugging.
96 */
97 public static void setDebugger(Debugger dbg) {
98 Debugger prev = debugger.getAndSet(dbg);
99 if (prev != null) {
100 prev.close();
101 }
102 }
103
104 /**
105 * Returns a copy of the current stack of call frames, outermost call first.

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected