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.)

This commit is contained in:
Just van Rossum 2001-06-25 18:01:24 +00:00
parent b037d33245
commit ae1f65ff82
1 changed files with 1 additions and 0 deletions

View File

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