in reply to Re: caller() returns wrong line on multi-line function call
in thread caller() returns wrong line on multi-line function call
I would say the "true line" is either the line with the function name or the line with the closing ) (or the last argument, in the case of a function call without parenthesis).
The reason I say this is because the arguments to a function call may be any expression that can be used on the right-hand side of an assignment, including another function call.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: caller() returns wrong line on multi-line function call (debugger confused)
by LanX (Saint) on Sep 15, 2017 at 19:07 UTC | |
by RonW (Parson) on Sep 16, 2017 at 00:36 UTC |