Tuesday, July 28, 2009

Perl Debugger Commands

C:\> perl -d xyz.pl

{Debugging Mode starts}
---> Type n to goto next line.
---> Type q to stop debugging .
---> b [x]: sets breakpoint @ x line
---> d [x]: to get rid of break point @ x line.
---> L : to examine breakpoints set in code
---> s : to step into any function @ any particular line.
---> Type h q for help on q command during debugging.
---> Type h R for help on R command during debugging( to restart the debugging )
---> Type h h for more help during debugging.

main::(book:3): my @books=( 'xyz', 'abc');
DB<1> n <--- command for "next" instruction main::(book:5): print @books;


DB<5> b 20
DB<6> L
DB<7> d 20

No comments:

Post a Comment