Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: Debugger line numbering anomaly

by LanX (Saint)
on Dec 25, 2019 at 00:26 UTC ( [id://11110604]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Debugger line numbering anomaly
in thread Debugger line numbering anomaly

well, good luck ignoring the other stuff I asked you to check.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^6: Debugger line numbering anomaly
by lzipin (Acolyte) on Dec 25, 2019 at 02:03 UTC

    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

      > How is db_tst.pl different from what I posted?

      I can only guess what your real file looked like before you posted it thru monasterie's html filters.

      > What kind of warning could I insert that would help? It's not a runtime problem;

      warn reports the line-numbers saved into the op-tree. °

      > That's pretty clear that the Perl 5.26.1 interpreter is providing a buggered line array.

      It's not the Perl interpreter, but the debugger which builds the line array. And this with plain Perl code.

      UPDATE : I was probably wrong here, seems the population appears when the executable is started with the -d option or if $PERLDB is set to x400 . I thought the actual reading is handled inside perl5db.pl but couldn't identify the sub yet.

      > I don't know how to follow up with that, except to upgrade to something newer.

      As long nobody else is reproducing this problem, my best guess is that your file is corrupted.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      updates

      °) see Re^2: Debugger line numbering anomaly (updated)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11110604]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found