diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-06-16 03:32:24 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-06-16 03:32:24 (GMT) |
commit | 0e3a57731b4b1ffbfae151cf23289bbd51148163 (patch) | |
tree | 5e80bf8895acc85720df9fd8aa99671a96587a80 /Lib/idlelib/Debugger.py | |
parent | 04443027107e1d53efaf7a41546f65af45748fd7 (diff) | |
download | cpython-0e3a57731b4b1ffbfae151cf23289bbd51148163.zip cpython-0e3a57731b4b1ffbfae151cf23289bbd51148163.tar.gz cpython-0e3a57731b4b1ffbfae151cf23289bbd51148163.tar.bz2 |
Polish RemoteDebugger code.
Use a repr() on the subprocess side when fetching dict values for stack.
The various dict entities are not needed by the debugger GUI, only
their representation.
Diffstat (limited to 'Lib/idlelib/Debugger.py')
-rw-r--r-- | Lib/idlelib/Debugger.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Lib/idlelib/Debugger.py b/Lib/idlelib/Debugger.py index a483168..f5646e0 100644 --- a/Lib/idlelib/Debugger.py +++ b/Lib/idlelib/Debugger.py @@ -52,7 +52,7 @@ class Idb(bdb.Bdb): class Debugger: - interacting = 0 + # interacting = 0 # XXX KBK 14Jun02 move to __init__ vstack = vsource = vlocals = vglobals = None def __init__(self, pyshell, idb=None): @@ -60,8 +60,10 @@ class Debugger: idb = Idb(self) self.pyshell = pyshell self.idb = idb + self.frame = None self.make_gui() - + self.interacting = 0 + def run(self, *args): try: self.interacting = 1 @@ -155,7 +157,7 @@ class Debugger: if self.vglobals.get(): self.show_globals() - frame = None + # frame = None # XXX KBK 14Jun02 Move to __init__ def interaction(self, message, frame, info=None): self.frame = frame @@ -300,10 +302,11 @@ class Debugger: gdict = frame.f_globals if lv and gv and ldict is gdict: ldict = None + # Calls OldStackviewer.NamespaceViewer.load_dict(): if lv: - lv.load_dict(ldict, force) + lv.load_dict(ldict, force, self.pyshell.interp.rpcclt) if gv: - gv.load_dict(gdict, force) + gv.load_dict(gdict, force, self.pyshell.interp.rpcclt) def set_breakpoint_here(self, edit): text = edit.text @@ -312,7 +315,7 @@ class Debugger: text.bell() return lineno = int(float(text.index("insert"))) - msg = self.set_break(filename, lineno) + msg = self.idb.set_break(filename, lineno) if msg: text.bell() return |