in reply to display source lines under debug after exec
IIRC does the debugger buffer the lines of the actual script into a special hash array* , you are most likely confusing the debugger about what the actual script is or what the line number is. (You didn't specify what you see)
You could manipulate this hash array* ... but again .. why?
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
°) Not sure what exec ${ECU_PERL_EXEC} -x $0 $* does, but this smells like a XY problem for me
*) perldebguts Each array @{"_<$filename"} holds the lines of $filename for a file compiled by Perl.
After looking up -x in perlrun I'm pretty sure that you need to shift @{"_<$filename"} by yourself.
But it's still a weird concept to always run a script under the debugger.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: display source lines under debug after exec (updates 2)
by BillB (Acolyte) on May 01, 2018 at 14:55 UTC | |
by LanX (Saint) on May 01, 2018 at 16:05 UTC | |
by BillB (Acolyte) on May 01, 2018 at 16:58 UTC | |
by LanX (Saint) on May 01, 2018 at 17:25 UTC |