When calling error("message") the editor breaks on the correct layer.
Since error("message")should be the same aserror("message", 1), I would expect the same behaviour from the debugger, however it is handled as if error("message", 2) has been called. And when i call error("message", 2) I get pointed to layer 3. So when I wanna address the correct call layer in lua, I get pointed to layer + 1 in local-lua-debugger.
I suppose it has something to do with when you have overridden the error function.
When calling
error("message")
the editor breaks on the correct layer. Sinceerror("message")
should be the same aserror("message", 1)
, I would expect the same behaviour from the debugger, however it is handled as iferror("message", 2)
has been called. And when i callerror("message", 2)
I get pointed to layer3
. So when I wanna address the correct call layer in lua, I get pointed tolayer + 1
in local-lua-debugger. I suppose it has something to do with when you have overridden theerror
function.