Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Debugger line numbering anomaly

by BillKSmith (Monsignor)
on Dec 24, 2019 at 16:57 UTC ( [id://11110593]=note: print w/replies, xml ) Need Help??


in reply to Debugger line numbering anomaly

At one time, I had this problem with code that did not conform to all the specifications in perlstyle. In this case:
•Long lines broken after an operator (except and and or).

I do not know if this issue has been fixed because I now routinely use perltidy. Even if this does not fix your issue, it is a good practice. The book "Perl Best Practices" recommends "break before operator". I have never had a problem with this exception.

Bill

Replies are listed 'Best First'.
Re^2: Debugger line numbering anomaly
by LanX (Saint) on Dec 24, 2019 at 18:09 UTC
    The debugger doesn't parse the code, it simply assigns every line found to an internal array, according to line-endings "\n" and shows them in accordance to the compiled line-numbers.

    Now if the Perl compiler got confused by multi-lines (very unlikely), this could be demonstrated by including a warn message.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2024-04-16 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found