#7245: Add a SIGINT handler on continue in pdb that allows to break a program again by pressing Ctrl-C.
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 9f5e7ae..08dce8f 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -214,7 +214,7 @@
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