summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-05-12 02:33:47 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2003-05-12 02:33:47 (GMT)
commit9ec454ec00088e051195e80363499a14cafc131a (patch)
tree2bb4d5c15dda1bd85e201951a8777136fc49841d /Lib/idlelib/PyShell.py
parent8f51526837b7edae4a4424657f0105b35e1c4648 (diff)
downloadcpython-9ec454ec00088e051195e80363499a14cafc131a.zip
cpython-9ec454ec00088e051195e80363499a14cafc131a.tar.gz
cpython-9ec454ec00088e051195e80363499a14cafc131a.tar.bz2
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
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r--Lib/idlelib/PyShell.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index ba898b2..af3267a 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -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()