good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Driving maniacally with the debuggerby LanX (Saint) |
on Sep 02, 2017 at 18:07 UTC ( [id://1198588]=note: print w/replies, xml ) | Need Help?? |
You could manipulate &DB::sub. I'd probably install a wrapper which only calls the original code if my conditions are met or manipulates $DB::deep before calling.* See http://search.cpan.org/dist/perl-5.8.7/lib/perl5db.pl#sub and perldebguts#Writing-Your-Own-Debugger
update*) alternatively setting $DB::single to 2 corresponds to the n cmd. Use local to avoid global effects.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|