PDB break

Ricardo Aráoz ricaraoz at gmail.com
Fri Apr 24 12:57:04 CEST 2009

Hi, I need to track where a certain condition is met in a program.
Checking on pdb docs I find the break statement :

b(reak) [[/filename/:]/lineno/ | /function/[, /condition/]]

But it requires me to name a line/function where my condition is tested.
Now there are far too many places in a project where this condition may
be set to true, and I might overlook some (and it would take an awful
lot of time to identify them all). Is there a statement that allows me
to stop execution when a condition is met regardless of where this happens?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090424/c494b843/attachment.html>

More information about the Python-list mailing list