aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-16 17:16:59 +0000
committerGuido van Rossum <guido@python.org>1998-10-16 17:16:59 +0000
commit6b384833f36264992f6a27ce9a623ad4d9f413af (patch)
treee833f5ea870f106254cfb3e47f2e3a4f173f7448
parentBetter debugger support (show stack etc). (diff)
downloadcpython-6b384833f36264992f6a27ce9a623ad4d9f413af.tar.gz
cpython-6b384833f36264992f6a27ce9a623ad4d9f413af.tar.bz2
cpython-6b384833f36264992f6a27ce9a623ad4d9f413af.zip
Oops
-rw-r--r--Tools/idle/Debugger.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/idle/Debugger.py b/Tools/idle/Debugger.py
index d414b6714c2..e83a29b20e5 100644
--- a/Tools/idle/Debugger.py
+++ b/Tools/idle/Debugger.py
@@ -71,7 +71,7 @@ class Debugger(bdb.Bdb):
self.vsource = BooleanVar(top)
self.bsource = Checkbutton(cframe,
text="Source", command=self.show_source, variable=self.vsource)
- self.bsource.grid(row=0, column=0)
+ self.bsource.grid(row=0, column=1)
self.vlocals = BooleanVar(top)
self.blocals = Checkbutton(cframe,
text="Locals", command=self.show_locals, variable=self.vlocals)
@@ -163,6 +163,8 @@ class Debugger(bdb.Bdb):
self.stackviewer = sv = StackViewer.StackViewer(
self.top, self.flist, self)
if self.frame:
+ stack, i = self.get_stack(self.frame, None)
+ sv.load_stack(stack, i)
else:
sv = self.stackviewer
if sv and not self.vstack.get():