debugging - How do I move the instruction point in the Perl debugger? -


I would like to be able to enable its execution point (executable) in Pearl Debugger. For example, if someone else has to set a variable, then it is already moving forward in advance.

Increasing the look around the counterboots (and the Pederbugs and Pearl Debugger POD) page shows that such functionality is either not supported or not a document.

Labels and conditional will be added to a cumbersome solution in your code Statement, but depending on how you want to emulate this facility, it may be worth it.

  POINT1: $ GOTO = ""; # $ Goto is our fake variable that we only set with debugger ($ a, $ b, $ c) = (1,2,3); POINT2: $ GOTO = ""; If ($ a  $ c) {Goto $ GOTO if $ GOTO; Print "Foo \ n"; } And {Goto $ GOTO if $ GOTO; Print "Bar \ n"; } $ GOTO if $ GOTO; } And {Goto $ GOTO if $ GOTO; Print "Nothing \ n"; Goto $ GOTO if $ GOTO; Sample debugging session:  
  $ perl -d debuggoto.pl Perl5db.pl Loading of DB routines from version 1.28 Editor support is available. Enter H or `hh 'for help, or' man copy 'for more help main: :( debuggoto.pl:1): POINT1: $ GOTO =" "; # $ Goto is our counterfeit variable that we only debugger db & lt; 1 & gt; N main: :( debuggoto.pllege): ($ a, $ b, $ c) = (1,2,3); DB & LT; 1 & gt; Main:: (debuggoto.pl:3): POINT2: $ GOTO = ""; DB & LT; 1 & gt; Main:: (debuggoto.pl:4): if ($ a  $ c) {DB < 1 & gt; Main: :( debuggoto.pl:10): Get $ GOTO if $ GOTO; DB & LT; 1 & gt; Main:: (debuggoto.pl11): Print "Bar \ n"; DB & LT; 1 & gt; Bar main: :( debuggoto.pl:13): $ $ GOTO if $ GOTO; DB & LT; 1 & gt; $ GOTO = "POINT2" db < 2 & gt; N main: :( debuggoto.pl:3): POINT2: $ GOTO = ""; DB & LT; 2 & gt; $ C = 0 dB < 3 & gt; N main: :( debuggoto.pl:4): if ($ a  $ c) {DB < 3 & gt; Main:: (debuggoto.pl:7): $ GOTO if $ GOTO; DB & lt; 3 & gt; Main:: (debuggoto.pl:8): Print "foo \ n"; DB & lt; 3 & gt; Foo main: :( debuggoto.pl13): Goto $ GOTO if $ GOTO; DB & lt; 3 & gt; Use q to leave the debugged program end or use o inhibit_exit to prevent R, to stop after the program termination for additional prevention, hQ, hr or ho to resume. DB & lt; 3 & gt; Use 'q' to leave or to resume for 'R' statement 'HQ' of DB & lt; 3 & gt;  

I wonder if it would be possible to create this debugger which uses this idea.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -