Lua Debugger in test mode
knassar702 opened this issue · 2 comments
knassar702 commented
Lua Debugger in test mode
lenscas commented
The debug library that lua has is disabled by default by mlua (and rlua for that matter) as it contains functions that can cause UB when used, keep this in mind when enabling it.
With that out of the way, you can probably just embed something like https://github.com/slembcke/debugger.lua once you enabled the debug library as it is just a single lua file.
Or... you can just enable the debug library when a flag is present and let people chose a debugger they want without officially supporting/preferring one.
knassar702 commented
@lenscas
Thank you for the explanation, the debugger.lua library you mentioned can be a helpful tool for debugging Lua code and can be easily embedded into a Lotus project as a single Lua file 😃