308x Filetype PDF File size 0.08 MB Source: www.perl.com
Perl Debugger Perl Debugger Perl Debugger
Quick Reference Quick Reference Quick Reference
Actions Actions Actions
Create Delete Create Delete Create Delete
Action a [line] command [condition] A (line|*) Action a [line] command [condition] A (line|*) Action a [line] command [condition] A (line|*)
Breakpoint b [line [condition]] B (line|*) Breakpoint b [line [condition]] B (line|*) Breakpoint b [line [condition]] B (line|*)
compile subname | [postpone] compile subname | [postpone] compile subname | [postpone]
subname [condition] subname [condition] subname [condition]
load filename load filename load filename
Watch w [expr] W (expr|*) Watch w [expr] W (expr|*) Watch w [expr] W (expr|*)
List L [a|b|w] List L [a|b|w] List L [a|b|w]
Pre-Post Prompt Commands Pre-Post Prompt Commands Pre-Post Prompt Commands
Create Append Delete Create Append Delete Create Append Delete
Pre-perl < [expr|?] << expr < * Pre-perl < [expr|?] << expr < * Pre-perl < [expr|?] << expr < *
Post-perl > [expr|?] >> expr > * Post-perl > [expr|?] >> expr > * Post-perl > [expr|?] >> expr > *
Pre-debugger { [expr|?] {{ expr { * Pre-debugger { [expr|?] {{ expr { * Pre-debugger { [expr|?] {{ expr { *
Motion Motion Motion
Continue c [line|sub] Continue c [line|sub] Continue c [line|sub]
Next n [expr] Next n [expr] Next n [expr]
Return r Return r Return r
Step (into) s [expr] Step (into) s [expr] Step (into) s [expr]
Trace T Trace T Trace T
Trace toggle t [expr] Trace toggle t [expr] Trace toggle t [expr]
Code Listings Code Listings Code Listings
View filename f filename View filename f filename View filename f filename
List code l [min+incr|min-max|line|subname|$var] List code l [min+incr|min-max|line|subname|$var] List code l [min+incr|min-max|line|subname|$var]
View code v [line] View code v [line] View code v [line]
Repos. display . Repos. display . Repos. display .
List previous code - List previous code - List previous code -
Search forward /regex[/] Search forward /regex[/] Search forward /regex[/]
Search back ?regex[?] Search back ?regex[?] Search back ?regex[?]
Excerpted from Excerpted from Excerpted from
Perl DeBugger Pocket Reference Perl DeBugger Pocket Reference Perl DeBugger Pocket Reference
www.oreilly.com www.oreilly.com www.oreilly.com
Perl Debugger Perl Debugger Perl Debugger
Quick Reference Quick Reference Quick Reference
Examining Data Examining Data Examining Data
Print p expr Print p expr Print p expr
Methods m (expr|class) Methods m (expr|class) Methods m (expr|class)
Inheritance i class Inheritance i class Inheritance i class
Module versions M Module versions M Module versions M
Subroutines S [[!] ~pattern] Subroutines S [[!] ~pattern] Subroutines S [[!] ~pattern]
Vars V [pkg [vars]] Vars V [pkg [vars]] Vars V [pkg [vars]]
Dump x [maxdepth] expr Dump x [maxdepth] expr Dump x [maxdepth] expr
Vars curr pkg X [vars] Vars curr pkg X [vars] Vars curr pkg X [vars]
Vars lexical y [level [vars]] Vars lexical y [level [vars]] Vars lexical y [level [vars]]
Commands Commands Commands
Pager |dbcmd [args] Pager |dbcmd [args] Pager |dbcmd [args]
Shell command !! cmd Shell command !! cmd Shell command !! cmd
Eval any perl command Eval any perl command Eval any perl command
Save filename save filename Save filename save filename Save filename save filename
Run filename source filename Run filename source filename Run filename source filename
Restart R Restart R Restart R
Alias = [alias value] Alias = [alias value] Alias = [alias value]
History list H [-number] History list H [-number] History list H [-number]
History redo ! [[-]number] | [pattern] History redo ! [[-]number] | [pattern] History redo ! [[-]number] | [pattern]
Documentation Documentation Documentation
Help h [cmd] | h h Help h [cmd] | h h Help h [cmd] | h h
Manual pages man manpage | perldoc Manual pages man manpage | perldoc Manual pages man manpage | perldoc
Quit q Quit q Quit q
Options Options Options
Options [opt|opt?|opt=val|opt="val"] Options [opt|opt?|opt=val|opt="val"] Options [opt|opt?|opt=val|opt="val"]
Hints You Might Find Useful Hints You Might Find Useful Hints You Might Find Useful
Trace program sending all debugger output into filename: Trace program sending all debugger output into filename: Trace program sending all debugger output into filename:
export PERLDB_OPTS="NonStop AutoTrace LineInfo=filename" export PERLDB_OPTS="NonStop AutoTrace LineInfo=filename" export PERLDB_OPTS="NonStop AutoTrace LineInfo=filename"
perl -d program [args] perl -d program [args] perl -d program [args]
Debug a regular expression Debug a regular expression Debug a regular expression
perl -Dr -e '/^[\w._-]+\@\w+(.\w+)+$/' perl -Dr -e '/^[\w._-]+\@\w+(.\w+)+$/' perl -Dr -e '/^[\w._-]+\@\w+(.\w+)+$/'
Enter the debugger as a shell Enter the debugger as a shell Enter the debugger as a shell
perl -d -e 0 perl -d -e 0 perl -d -e 0
www.oreilly.com www.oreilly.com www.oreilly.com
©2004 O’Reilly Media, Inc. O’Reilly logo is a registered trademark of O’Reilly Media Inc. All other trademarks ©2004 O’Reilly Media, Inc. O’Reilly logo is a registered trademark of O’Reilly Media Inc. All other trademarks ©2004 O’Reilly Media, Inc. O’Reilly logo is a registered trademark of O’Reilly Media Inc. All other trademarks
are property of their respective owners. #40084 are property of their respective owners. #40084 are property of their respective owners. #40084
no reviews yet
Please Login to review.