summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2001-06-25 18:01:24 (GMT)
committerJust van Rossum <just@letterror.com>2001-06-25 18:01:24 (GMT)
commitae1f65ff825f72f3972e503036966e206f5b39fa (patch)
treea88e4e0914cb014e8876e8d59e1db94372e75378 /Lib/bdb.py
parentb037d332454053d98b9ca36950891deb292095c6 (diff)
downloadcpython-ae1f65ff825f72f3972e503036966e206f5b39fa.zip
cpython-ae1f65ff825f72f3972e503036966e206f5b39fa.tar.gz
cpython-ae1f65ff825f72f3972e503036966e206f5b39fa.tar.bz2
Return self.trace_dispatch from dispatch_return() to enable stepping through generators. (An alternative would be to create a new "yield" debugger event, but that involves many more changes, and might break Bdb subclasses.)
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 3fdfbdd..7326a72 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -74,6 +74,7 @@ class Bdb:
if self.stop_here(frame) or frame == self.returnframe:
self.user_return(frame, arg)
if self.quitting: raise BdbQuit
+ return self.trace_dispatch
def dispatch_exception(self, frame, arg):
if self.stop_here(frame):