summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/run.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-06-26 02:32:09 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-06-26 02:32:09 (GMT)
commitffd3a4217a557bad4984621c22f5ae312d708169 (patch)
treef11990897d270f026c473a7e740a4a3e7968b665 /Lib/idlelib/run.py
parentfdc34315f7860f6b47cead676e0b6dda987d1008 (diff)
downloadcpython-ffd3a4217a557bad4984621c22f5ae312d708169.zip
cpython-ffd3a4217a557bad4984621c22f5ae312d708169.tar.gz
cpython-ffd3a4217a557bad4984621c22f5ae312d708169.tar.bz2
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/run.py')
-rw-r--r--Lib/idlelib/run.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
index cfb318c..9f26c16 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -23,7 +23,7 @@ class MyHandler(rpc.RPCHandler):
class Executive:
def __init__(self, rpchandler):
- self.conn = rpchandler
+ self.rpchandler = rpchandler
import __main__
self.locals = __main__.__dict__
@@ -32,14 +32,18 @@ class Executive:
def start_the_debugger(self, gui_adap_oid):
import RemoteDebugger
- return RemoteDebugger.start_debugger(self.conn, gui_adap_oid)
+ return RemoteDebugger.start_debugger(self.rpchandler, gui_adap_oid)
+
+ def stop_the_debugger(self, idb_adap_oid):
+ "Unregister the Idb Adapter. Link objects and Idb then subject to GC"
+ self.rpchandler.unregister(idb_adap_oid)
def stackviewer(self, flist_oid=None):
if not hasattr(sys, "last_traceback"):
return None
flist = None
if flist_oid is not None:
- flist = self.conn.get_remote_proxy(flist_oid)
+ flist = self.rpchandler.get_remote_proxy(flist_oid)
import RemoteObjectBrowser
import StackViewer
tb = sys.last_traceback