Closed sewbacca closed 3 years ago
I looked into this when exploring that issue, but this method of replacing xpcall doesn't maintain the call stack in the error handler, so it would not allow breaking and inspecting at the error site. It would just break at the resume call as the debugger already does now.
Hmmm.... Sorry I didn't tested it before suggesting. I guess I'll close that issue now. Thank you.
There is a project, which replaces normal pcall and xpcall calls with coroutine compatible calls. It may be used to get stacktrace in Lua 5.1, which @tomblind mentioned in #29 is problematic.