diff options
author | Georg Brandl <georg@python.org> | 2010-12-04 16:00:47 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-12-04 16:00:47 (GMT) |
commit | 44f2b640ff0260f5e338e41ad3a2d13185396979 (patch) | |
tree | a448ea5dea9367826b6d7e325c1487395c704fe8 /Lib/bdb.py | |
parent | 1ed77f300b713166b0508eacd183c32f1d7437b2 (diff) | |
download | cpython-44f2b640ff0260f5e338e41ad3a2d13185396979.zip cpython-44f2b640ff0260f5e338e41ad3a2d13185396979.tar.gz cpython-44f2b640ff0260f5e338e41ad3a2d13185396979.tar.bz2 |
#7245: Add a SIGINT handler on continue in pdb that allows to break a program again by pressing Ctrl-C.
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r-- | Lib/bdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -214,7 +214,7 @@ class Bdb: def set_continue(self): # Don't stop except at breakpoints or when finished self._set_stopinfo(self.botframe, None, -1) - if not self.breaks: + if not self.breaks and not self.watching: # no breakpoints; run without debugger overhead sys.settrace(None) frame = sys._getframe().f_back |