mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
#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:
parent
1ed77f300b
commit
44f2b640ff
4 changed files with 47 additions and 7 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue