Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Driving maniacally with the debugger

by LanX (Archbishop)
on Sep 02, 2017 at 18:07 UTC ( #1198588=note: print w/replies, xml ) Need Help??


in reply to Driving maniacally with the debugger

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
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re: Driving maniacally with the debugger

Replies are listed 'Best First'.
Re^2: Driving maniacally with the debugger
by ExReg (Priest) on Sep 05, 2017 at 14:22 UTC

    Thanks. I do not know DB that well and was hoping there might be something in there I could use.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1198588]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2019-06-20 17:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (90 votes). Check out past polls.

    Notices?