We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8718f22 commit 078cb13Copy full SHA for 078cb13
python/pythonmonkey/lib/pmdb.py
@@ -15,6 +15,10 @@ def debuggerInput(prompt: str):
15
return ""
16
17
def enable(debuggerGlobalObject = pm.eval("debuggerGlobal")):
18
+ if debuggerGlobalObject._pmdbEnabled:
19
+ return # already enabled, skipping
20
+
21
+ debuggerGlobalObject._pmdbEnabled = True
22
debuggerGlobalObject.eval("""(debuggerInput, _pythonPrint, _pythonExit) => {
23
const dbg = new Debugger()
24
const mainDebuggee = dbg.addDebuggee(mainGlobal)
0 commit comments