Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Using the Perl Debugger (-d)

by rinceWind (Monsignor)
on Jan 25, 2007 at 15:03 UTC ( [id://596507]=note: print w/replies, xml ) Need Help??


in reply to Using the Perl Debugger (-d)

There was a poll once: I usually debug via..., which would seem to suggest that you are in good company.

I have found myself reaching for the debugger when trying to identify and fix problems in somebody else's code. Under these circumstances, I am reluctant to drop extra print or warn statements into the code, just to find out what is going on. The code could be a CPAN module I'm trying to use, or an example script.

Since learning the basics of perl5db (perl -d), I have been using it on my own code, sometimes to quickly rectify some caffeine deficient blonde moments. I also use it to debug old code of my own that I've forgotten the fine details of.

If perl5db is too scary, there's also Devel::ptkdb which has a much lower entry bar, especially for those not brought up on the command line.

--

Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-06-24 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.