Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: caller() returns wrong line on multi-line function call (debugger confused)

by RonW (Parson)
on Sep 16, 2017 at 00:36 UTC ( #1199494=note: print w/replies, xml ) Need Help??


in reply to Re^3: caller() returns wrong line on multi-line function call (debugger confused)
in thread caller() returns wrong line on multi-line function call

hence the line with the sub statement in our case

In the OP's case, yes.

I was talking about function calls in general. And for the case of displaying line numbers to a sentient being (which the OP did mention).

For a debugger, yes, the line of number of start of the function call is needed to be able to display the function call correctly.

Update: Though, for a GUI debugger, highlighting the line with the closing ) as long as there wasn't another function call on the same line.

Certainly, the least ambiguous is to have the line number with the start of the call (either the function name or the sub).

My main point of my previous post still remains: Anything line "in the middle" of the call is too ambiguous, therefore not acceptable.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2019-05-25 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (151 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!