tomblind / local-lua-debugger-vscode

Local Lua Debugger for VSCode
MIT License
107 stars 26 forks source link

Error levels are not handled properly #51

Closed sewbacca closed 2 years ago

sewbacca commented 2 years ago

When calling error("message") the editor breaks on the correct layer. Since error("message") should be the same as error("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.