agaved has asked for the wisdom of the Perl Monks concerning the following question:
I want to observe the value that a variable takes after any step/continue that I do in the debugger.
I can type 's' and then 'x $variable', but in this case I have to enter two commands every time: no biggie but a bit annoying. I wonder if there is any way to concatenate the two commands, so that at every step I can just recall the last line.
I tried 's, x $variable', 's; x $variable', 's - x $variable' with no success.
It seems a pretty standard feature for a debugger but I couldn't find any information on this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 'Step and see' a variable in Perl debugger
by choroba (Cardinal) on Apr 21, 2012 at 16:07 UTC | |
|
Re: 'Step and see' a variable in Perl debugger
by zentara (Cardinal) on Apr 21, 2012 at 17:49 UTC |