summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-04 16:00:47 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-04 16:00:47 (GMT)
commit44f2b640ff0260f5e338e41ad3a2d13185396979 (patch)
treea448ea5dea9367826b6d7e325c1487395c704fe8 /Lib/bdb.py
parent1ed77f300b713166b0508eacd183c32f1d7437b2 (diff)
downloadcpython-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.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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