Yary has asked for the wisdom of the Perl Monks concerning the following question:
In particular I'd like for it to break anytime it is about to execute a print statement, as if the line before said $DB::single=1.
I tried being "clever" with this debugger command, but it had no effect:
b $DB::dbline[$DB::lineno] =~ /\bprint\b/
As a side issue, even though I have a $DB::single=1 command in my code, saying x $DB::single in the debugger afterwards tells me undef. Can one not access the DB package from the debugger command line?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Make debugger break on source lines matching a pattern
by LanX (Saint) on Jan 11, 2014 at 17:43 UTC | |
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 | |
by Yary (Pilgrim) on Jan 11, 2014 at 20:35 UTC | |
by LanX (Saint) on Jan 11, 2014 at 21:07 UTC |