Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Using the Perl Debugger (-d)

by johnnywang (Priest)
on Jan 26, 2007 at 06:08 UTC ( #596674=note: print w/ replies, xml ) Need Help??


in reply to Using the Perl Debugger (-d)

To me, the debugger is indispensable, and I'd urge everyone to learn and use it.

Besides using "perl -de 1" to test any code snippet, there are many cases where the debugger is much better than print (of course, I print too, and log with Log4Perl). For example, if a script gets an array of files to process, and something is not right for one of the files, it's so easy to run through the debugger and change the array on the fly than to change the code. And when you are handed someone else's code, going through the debugger will reveal much more of the flow than print.

On a side note, I think php doesn't have as nice an interactive shell, it's one of the things I really miss when I do php.


Comment on Re: Using the Perl Debugger (-d)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-07-12 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (240 votes), past polls