Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: Neat Debugger tricks

by tye (Sage)
on Nov 17, 2005 at 06:05 UTC ( #509300=note: print w/replies, xml ) Need Help??

in reply to Re: Neat Debugger tricks
in thread Neat Debugger tricks

Why use Data::Dumper? Do you know about the "x" command? Of course, for me, it isn't just the 1 character versus a few dozen; it is that the default format that Data::Dumper produces is just horribly awful and the format the "x" command uses is quite nice.

I was about to hack into the debugger the ability to control how deep complex structures are dumped. Unfortunately, "hashDepth" already existed and has nothing to do with "depth", but instead controls the length of dump produced. Not everyone "gets" English. (: Luckily I see that someone solved this problem with "dumpDepth".</ramble>

- tye        

Replies are listed 'Best First'.
Re^3: Neat Debugger tricks
by Ovid (Cardinal) on Nov 17, 2005 at 18:10 UTC

    I'm betting he uses Data::Dumper instead of 'x' for the same reason I do: inertia. I've become so used to Dumper output that I can just glance at it and see what's going on. The output from 'x' is always a mental speedbump for me. I'm not saying it's bad, it's just not what I'm used to and I don't use the debugger often enough for this to be an issue.


    New address of my CGI Course.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2017-05-24 14:11 GMT
Find Nodes?
    Voting Booth?