File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def debuggerInput(prompt: str):
1515 return ""
1616
1717def enable (debuggerGlobalObject = pm .eval ("debuggerGlobal" )):
18- debuggerGlobalObject .eval ("""(debuggerInput, _pythonPrint) => {
18+ debuggerGlobalObject .eval ("""(debuggerInput, _pythonPrint, _pythonExit ) => {
1919 const dbg = new Debugger()
2020 const mainDebuggee = dbg.addDebuggee(mainGlobal)
2121 dbg.uncaughtExceptionHook = (e) => {
@@ -99,7 +99,7 @@ def enable(debuggerGlobalObject = pm.eval("debuggerGlobal")):
9999 case "quit":
100100 case "kill":
101101 // Force exit the program
102- mainGlobal.python.exit (127)
102+ _pythonExit (127)
103103 break blockingLoop;
104104 case "h":
105105 case "help":
@@ -140,4 +140,4 @@ def enable(debuggerGlobalObject = pm.eval("debuggerGlobal")):
140140 // Enter debugger on `debugger;` statement
141141 dbg.onDebuggerStatement = (frame) => enterDebuggerLoop(frame)
142142
143- }""" )(debuggerInput , print )
143+ }""" )(debuggerInput , print , lambda status : exit ( int ( status )) )
You can’t perform that action at this time.
0 commit comments