pdb and generators

June 27, 2011
6:32 p.m.
When debugging generators (especially when using them as coroutines) I often want 'next' to step over a yield statement/expression, instead of the current behavior, which is to step out of the frame, since pdb doesn't seem to see the difference between yield and return. Or I could live with a separate command to step over the yield. Has anyone looked into this yet? I found a question about this on StackOverflow.com but the answers were particularly unhelpful, so I'm guessing I'm not the first to want this but it hasn't been solved yet. It might be a good project for someone looking into hacking pdb. -- --Guido van Rossum (python.org/~guido)
5012
Age (days ago)
5012
Last active (days ago)
0 comments
1 participants
participants (1)
-
Guido van Rossum