in reply to Make debugger break on source lines matching a pattern
In your case I'd rather try to temporarily overwrite print with a wraper sub which sets $DB::single=1
> Can one not access the DB package from the debugger command line?
Thats a value set at run-time , and I suppose it's immediately deleted after causing a break.
Cheers Rolf
( addicted to the Perl Programming Language)
¹) Sorry watch doesn't do what I thought. It monitors variable changes w/o conditions. And there are no global break conditions, they are bound to line-numbers.
There are several possible workarounds but IMHO overwriting print seems the simplest.
²) no it doesn't '@dbline' is where breakpoints are stored
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Make debugger break on source lines matching a pattern
by Yary (Pilgrim) on Jan 11, 2014 at 21:18 UTC | |
by LanX (Saint) on Jan 11, 2014 at 22:23 UTC | |
by Yary (Pilgrim) on Jan 12, 2014 at 00:41 UTC | |
by LanX (Saint) on Jan 12, 2014 at 11:40 UTC | |
by LanX (Saint) on Jan 11, 2014 at 21:39 UTC | |
|
Re^2: Make debugger break on source lines matching a pattern
by Yary (Pilgrim) on Jan 11, 2014 at 20:35 UTC | |
by LanX (Saint) on Jan 11, 2014 at 21:07 UTC |