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)
| 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. |