Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 surveying the Monastery: (8)
As of 2014-12-21 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (108 votes), past polls