|The stupid question is the question not asked|
Using the Perl Debuggerby root (Scribe)
|on Dec 23, 1999 at 04:07 UTC||Need Help??|
Perl's debugger is a command line debugger, so while it's not pretty, with buttons and little red lines for your breakpoints, it can be pretty durn effective once you get used to it. This isn't so much of a tutorial as a brief overview of the most common commands.
bash$ perl -d myscript.plThis will put you in the command line mode. It looks like:
main::(perl/test.pl:5): print "Just another perl monk\n"; __DB<1>__
Dissecting it, we have this information:
Module::(sub module)::function(physical file location:line number): current line of code;
now you can type in whatever you want to make your program proceed.
Know your command set!
Here's a few of the more often-used commands:
What? More functionality?
Of course there's a hell of a lot more functionality! Check out the perldebug man page...