mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
1. RemoteDebugger now runs user code in subprocess MainThread
2. run.py: move exception printing to toplevel to allow access from main() 3. Clarification in PyShell.py: when the subprocess is restarted, the debugger GUI is reused with a fresh instance of the subprocess debugger. M PyShell.py M RemoteDebugger.py M run.py
This commit is contained in:
parent
8f51526837
commit
9ec454ec00
3 changed files with 61 additions and 54 deletions
|
@ -368,6 +368,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
|||
debug = self.getdebugger()
|
||||
if debug:
|
||||
try:
|
||||
# Only close subprocess debugger, don't unregister gui_adap!
|
||||
RemoteDebugger.close_subprocess_debugger(self.rpcclt)
|
||||
except:
|
||||
pass
|
||||
|
@ -387,6 +388,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
|
|||
console.text.mark_gravity("restart", "left")
|
||||
# restart subprocess debugger
|
||||
if debug:
|
||||
# Restarted debugger connects to current instance of debug GUI
|
||||
gui = RemoteDebugger.restart_subprocess_debugger(self.rpcclt)
|
||||
# reload remote debugger breakpoints for all PyShellEditWindows
|
||||
debug.load_breakpoints()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue