in reply to Re^5: Debugger line numbering anomaly
in thread Debugger line numbering anomaly
How is db_tst.pl different from what I posted?
No, the script doesn't have Windows/DOS line endings. If it did, it wouldn't matter to Linux, if I call it via 'perl script.pl'. But it clearly runs fine on Linux (at least my Xubuntu and Debian installations). And the debugger issues no warnings.
What kind of warning could I insert that would help? It's not a runtime problem; it's a problem of the debugger missing a line, and so subsequent line numbers are off by one.
I note in the perl5db.pl POD text:
@dbline Local alias to the magical line array, "@{$main::{'_<'.$filename}}" , supplied by the Perl interpreter to the debugger. Contains the source +.
That's pretty clear that the Perl 5.26.1 interpreter is providing a buggered line array.
I don't know how to follow up with that, except to upgrade to something newer.
-- Lee
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Debugger line numbering anomaly (updated)
by LanX (Saint) on Dec 25, 2019 at 02:29 UTC |