Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Using the perl debugger

by codeacrobat (Chaplain)
on Mar 15, 2009 at 11:13 UTC ( [id://750711]=note: print w/replies, xml ) Need Help??


in reply to Using the perl debugger

To my knowledge there is no jump over next line. Hi maybe you could inject a LABEL on the next line and then goto that label?
$ perl -de 'print "hello world\n"; die; LABEL: print "fnord\n"; exit 0;' Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): print "hello world\n"; DB<1> n hello world main::(-e:2): die; DB<1> n Died at -e line 2. at -e line 2 Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB<1> q $ perl -de 'print "hello world\n"; die; LABEL: print "fnord\n"; exit 0;' Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): print "hello world\n"; DB<1> n hello world main::(-e:2): die; DB<1> goto LABEL fnord Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info.
Unfortunately the goto breaks something in the debugger, the remaining code runs without user interaction (as if you had pressed "r").

print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://750711]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2025-02-09 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (96 votes). Check out past polls.