Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Using the Perl Debugger (-d)

by Withigo (Friar)
on Jan 27, 2007 at 00:50 UTC ( #596806=note: print w/replies, xml ) Need Help??

in reply to Using the Perl Debugger (-d)

As far as a debugger tutorials, sure, the relevant perldocs are voluminous; but the few tutorials which I have managed to find demonstrate the same handful of examples which are mostly basic usage.

If you want to do anything non-trivial with the debugger, or if you find yourself poking around the and source for whatever crazy reasons, or if you find yourself wanting to extend the debugger and/or customize parts of it, you're pretty much on your own.

There was an engineer over at Yahoo who documented the debugger in much greater detail and clarity than in the perldocs(IMHO). Have a look at it here. I found it enormously useful in figuring out how the debugger works and in getting more out of the debugger.

Replies are listed 'Best First'.
Re^2: Using the Perl Debugger (-d)
by pemungkah (Priest) on Jan 28, 2007 at 03:14 UTC
    "There was an engineer over at Yahoo who documented the debugger in much greater detail and clarity than in the perldocs(IMHO)."

    That would be me, and thanks. I'm always glad to talk abut debugger internals (though I admit to still being kinda unclear about some of it. That's some pretty convoluted code), so /msg me if you like.

    As far as developing your own commands, I did a hack called Devel::Command that lets you play around with your own debugger commands. Essentially it patches DB::DB at startup to insert a check for user commands first. It's pretty easy to use. As an example, Devel::Command::Viz adds a viz command that uses GraphViz::Data::Structure to draw pretty pictures of your data (Unix-like systems only, but Windows patches really really welcome!).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://596806]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2017-07-21 21:05 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (335 votes). Check out past polls.