. List previous|current line | s [expr] single step [in expr]
| v [ln]
view around ln
| n [expr] next, steps over subs
| f filename View source in file | ␍ [Enter] Repeat last n or s
| /pattern
?pattern Search forward backward | r Return from subroutine
| |
|
b [ln|event|sub] [cmd] | Set breakpoint
default current line
| Data Examination:
| B ln|* remove Breakpoint | all
| p expr prints expr (uses script's current package).
| a [ln] cmd at(before) ln do cmd
| x expr Evals expr in list context, dumps the result
| A ln | * remove actions at ln or all
| m expr Evals expr in list context, lists methods.
| t [expr] Toggle trace
| = [alias val] Define/list an alias
|
w expr add a watch expression
| L List break/watch/actions
|
W expr | * remove a/all watch exprs
| expr Execute perl code,
| T stack trace
| X vars lists Varables as "V current_package [vars]".
| V Pkge [vars] List Variables in Pkge vars can be ~pattern or !pattern.
| y n [vars] List lexicals in higher scope . vars same as V.
S [!]pat List subroutines [not] matching pat . sample
example: S main
| R Restart
| ![!] syscmd Run cmd in a subprocess
| q or ^D Quit
| o […] Set debugger options
| <[<]|{[{] [cmd] | Do pre-prompt
| >[>] [cmd]
Do post-prompt
| ! [N|pat] Redo a previous command
| H [-n] Display last n commands
| = [a val] Define/list an alias
| h [dbg_cmd] Get help on command
| h h Complete help page
| |[|]dbg_cmd Send output to pager
| M Show module versions sample
| R Restart
Pure-man-restart of debugger,
Only history, breakpoints and actions, options and -w, -I, -e state and command-line options are preserved:
| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
---|
| | | | | | |