Perl Debugger Perl D - Perl.com

whooploafΛογισμικό & κατασκευή λογ/κού

13 Δεκ 2013 (πριν από 3 χρόνια και 8 μήνες)

115 εμφανίσεις

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