actboy168 / lua-debug

Lua Debug Adapter for Visual Studio Code
MIT License
439 stars 95 forks source link

Wrong exception type caught when using `dbg:setup_patch()` #265

Closed thewhitegoatcb closed 1 year ago

thewhitegoatcb commented 1 year ago

Caused by checking the top of the call stack instead a few levels below at: https://github.com/actboy168/lua-debug/blob/47ce8e48cb742b620458c4bc1296fd5c6df4224d/extension/script/backend/worker.lua#L714 and https://github.com/actboy168/lua-debug/blob/47ce8e48cb742b620458c4bc1296fd5c6df4224d/extension/script/backend/worker.lua#L746