Re: set pdb break condition based upon number of hits?

2009-11-04 Thread Diez B. Roggisch
Reckoner schrieb: Is it possible to set pdb break condition based upon number of hits? I mean something like (Pdb) break line_number (number_of_hits_for_this_breakpoint >10) any help appreciated. MY_GLOBAL_COUNTER = 0 MY_GLOBAL_COUNTER += 1 if MY_GLOBAL_COUNTER >= 10: impo

PDB break

2009-04-24 Thread Ricardo Aráoz
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