Wednesday, May 25, 2011

Debug Perl

$ perl -d foo.pl

'-d' turns on debugger


Loading DB routines from perl5db.pl version 1.28
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(./foo.pl:172): my $foo;
                                                                                                                                                               DB<1> h
DB<2> c 100

'c 100' means execute code until line 100

No comments: