Section B.15. Debugging


B.15. Debugging

There's a debugger that comes with Perl and supports breakpoints, watchpoints, single-stepping, and most things you'd want in a command-line Perl debugger. It's written in Perl, so if there are bugs in the debugger, we're not sure how they get those out. In addition to all of the usual debugger commands, you can run Perl code from the debuggercalling your subroutines, changing variables, even redefining subroutineswhile your program is running. See the perldebug manpage for the latest details. The Alpaca gives a detailed walkthrough of the debugger.

Another debugging tactic is to use the B::Lint module, which is still preliminary as of this writing.



Learning Perl
Learning Perl, 5th Edition
ISBN: 0596520107
EAN: 2147483647
Year: 2003
Pages: 232

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net