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 argue that the One True Line—for debugging and other purposes—is the line that contains the function name. That said, if caller() reported some other line (e.g. the line with the open paren or close paren) consistently, then it would be OK, I guess, but the inconsistency seems like a Problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: caller() returns wrong line on multi-line function call
by LanX (Saint) on Sep 14, 2017 at 18:06 UTC | |
by GrandFather (Saint) on Sep 14, 2017 at 22:10 UTC |