I’m trying to debug a script with perl -d .... After I break where I want, I’d like to print out the current environment and the environment from higher frames.
I see the stack via T. Now, if I try V, I get a list of everything, which is pretty much useless, since it includes stuff like SO_BROADCAST constants, etc. How can I filter those out and get only local ones?
How do I do the same for higher frames?
Also, how do I print the code around the line of a higher stack frame? v / l do only the current one.
Have you tried
y [level], which shows the lexical (my) variables at the current or higher (specified bylevel)?Provided that’s what you mean by “getting only local ones”, of course.