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