#7245: Add a SIGINT handler on continue in pdb that allows to break a program again by pressing Ctrl-C.

This commit is contained in:
Georg Brandl 2010-12-04 16:00:47 +00:00
parent 1ed77f300b
commit 44f2b640ff
4 changed files with 47 additions and 7 deletions

View file

@ -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