http://qs321.pair.com?node_id=509300


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.

    Cheers,
    Ovid

    New address of my CGI Course.