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

Re: Neat Debugger tricks

by leriksen (Curate)
on Nov 16, 2005 at 23:54 UTC ( #509244=note: print w/ replies, xml ) Need Help??


in reply to Neat Debugger tricks

One I use is to use Data::Dumper to display complex data structures whilst in the dbgr

DB<6>use Data::Dumper DB<7>print Dumper($complexity)

I think used in conjunction with the first point (opening a file handle in the dbgr) this could a neat way to capture an object or structure to a file at a point in time

...reality must take precedence over public relations, for nature cannot be fooled. - R P Feynmann


Comment on Re: Neat Debugger tricks
Download Code
Re^2: Neat Debugger tricks
by pemungkah (Priest) on Jun 06, 2007 at 20:59 UTC
    Or, if your development environment supports dotty (the interactive dot environment from graphviz), you can install Devel::Command::Viz and get pictures of your data structures drawn with dot by GraphViz::Data::Structure.

    Disclaimer: I wrote both of these and for the two or three times I've really needed them, they really helped.

    Sometime I should tell the story of how wanting to do this got me into completely recommenting the debugger...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2015-07-04 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls