This is a summary of the commands learned in each of the lessons in this tutorial.
perl -d
- start debuggingn
- step through the script ('next') or (ENTER after first n)q
- quit the debugger ('quit')R
- start the script from the beginning ('restart')
x
- examine a variablep
- print the value of a variable
s
- step into a functionr
- return from a functionc
- continue execution
l [line|sub]
- list source codev [line]
- view around line.
- list current linef [file]
- view source in a file
b
- set a breakpoint (current line)b [sub]
- set a breakpoint (specified function)b [line]
- set a breakpoint (specified line)B [line]
- clear a breakpoint for lineB *
- clear all breakpointsL
- list break/watch/actions