diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-06-26 02:32:09 +0000 |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-06-26 02:32:09 +0000 |
commit | ffd3a4217a557bad4984621c22f5ae312d708169 (patch) | |
tree | f11990897d270f026c473a7e740a4a3e7968b665 /Lib/idlelib/PyShell.py | |
parent | fdc34315f7860f6b47cead676e0b6dda987d1008 (diff) | |
download | cpython-git-ffd3a4217a557bad4984621c22f5ae312d708169.tar.gz |
Shutdown subprocess debugger and associated Proxies/Adapters when closing
the Idle debugger.
M PyShell.py : Call RemoteDebugger.close_remote_debugger()
M RemoteDebugger.py: Add close_remote_debugger(); further polish code used
to start the debugger sections.
M rpc.py : Add comments on Idlefork methods register(), unregister()
comment out unused methods
M run.py : Add stop_the_debugger(); polish code
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rw-r--r-- | Lib/idlelib/PyShell.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 6fb7f6904c..4771d2e3a2 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -25,6 +25,7 @@ from configHandler import idleConf import idlever import rpc +import RemoteDebugger # XX hardwire this for now, remove later KBK 09Jun02 use_subprocess = 1 # Set to 1 to spawn subprocess for command execution @@ -89,8 +90,7 @@ linecache.checkcache = linecache_checkcache class PyShellEditorWindow(EditorWindow): - - # Regular text edit window when a shell is present + "Regular text edit window when a shell is present" # XXX ought to merge with regular editor window def __init__(self, *args): @@ -532,6 +532,8 @@ class PyShell(OutputWindow): if db: self.interp.setdebugger(None) db.close() + if self.interp.rpcclt: + RemoteDebugger.close_remote_debugger(self.interp.rpcclt) self.resetoutput() self.console.write("[DEBUG OFF]\n") sys.ps1 = ">>> " @@ -551,7 +553,6 @@ class PyShell(OutputWindow): self.set_debugger_indicator() def open_remote_debugger(self): - import RemoteDebugger gui = RemoteDebugger.start_remote_debugger(self.interp.rpcclt, self) self.interp.setdebugger(gui) sys.ps1 = "[DEBUG ON]\n>>> " @@ -559,7 +560,7 @@ class PyShell(OutputWindow): self.set_debugger_indicator() def beginexecuting(self): - # Helper for ModifiedInterpreter + "Helper for ModifiedInterpreter" self.resetoutput() self.executing = 1 ##self._cancel_check = self.cancel_check |