Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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]
[Corion]: I haven't found a good way to plot stuff into country maps... Maybe one of the demos of D3.js has something usable?
[Discipulus]: i need to use css to get and colorize various different IDs?
[Corion]: I haven't used it, but http://datamaps. looks promising
[Discipulus]: thanks.. a more perlish solution?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2017-03-23 09:26 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.