diff options
author | Guido van Rossum <guido@python.org> | 1992-01-24 01:12:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-24 01:12:39 (GMT) |
commit | 27060c004ece45eba9618d0175b6a01b900296f9 (patch) | |
tree | 47129e1f42704900f4f620d6f16c6863e1b9a7bf /Lib/lib-stdwin/wdb.py | |
parent | b53e67837b58bf02f5dc9ac5f3fc25a871f2aa1f (diff) | |
download | cpython-27060c004ece45eba9618d0175b6a01b900296f9.zip cpython-27060c004ece45eba9618d0175b6a01b900296f9.tar.gz cpython-27060c004ece45eba9618d0175b6a01b900296f9.tar.bz2 |
Minor fixes.
Diffstat (limited to 'Lib/lib-stdwin/wdb.py')
-rw-r--r-- | Lib/lib-stdwin/wdb.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Lib/lib-stdwin/wdb.py b/Lib/lib-stdwin/wdb.py index 89b03f5..9914f3f 100644 --- a/Lib/lib-stdwin/wdb.py +++ b/Lib/lib-stdwin/wdb.py @@ -1,5 +1,11 @@ # wdb.py -- a window-based Python debugger +# XXX To do: +# - don't fall out of bottom frame +# - is the /tmp file hack really needed? +# - also use it for post-mortem debugging + + import stdwin from stdwinevents import * import sys @@ -65,15 +71,18 @@ class Wdb(bdb.Bdb, basewin.BaseWindow): # Window debugger frame.f_locals['__return__'] = return_value self.settitle('--Return--') self.interaction(frame, None) - self.settitle('--Stack--') + if not self.closed: + self.settitle('--Stack--') def user_exception(self, frame, (exc_type, exc_value, exc_traceback)): # This function is called if an exception occurs, # but only if we are to stop at or just below this level frame.f_locals['__exception__'] = exc_type, exc_value self.settitle(exc_type + ': ' + repr.repr(exc_value)) + stdwin.fleep() self.interaction(frame, exc_traceback) - self.settitle('--Stack--') + if not self.closed: + self.settitle('--Stack--') # Change the title |