mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
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:
parent
b037d33245
commit
ae1f65ff82
1 changed files with 1 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue