in reply to Re^3: Make debugger break on source lines matching a pattern
in thread Make debugger break on source lines matching a pattern
Using a counter is a simple way of having the state change only before the matching line, and not after:
The bistable flip-flop seems like it should be perfect for this case, if you take care to use a non-constant always-true expression for the right hand side. Seems like it should. I can't get it to work properly. And now I'm spending more time playing with the debugger than debugging!w $::ctr+=$::{"_<".(caller 3)[1]}[(caller 3)[2]] =~ /\bprint\b/
But it sure is a fun challenge.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Make debugger break on source lines matching a pattern
by LanX (Saint) on Jan 12, 2014 at 11:40 UTC |