Hello,
I've noticed that some debug functions are implemented, but important ones (getlocal,setlocal,gethook,sethook) to effectively debug the lua vm are currently stubs. Is this intentional? I know the luaerl repo has kept the debug functions as stubs because "its too implementation dependent", but before I were to work to implement those features I want to ask if this repo is accepting PRs for this. It probably makes sense to have two modes for the lua VM (debug/prod), as implementing these functions will probably slow down as it would have to force the compiler to stop throwing away register values.
I also would like to implement a DAP file for better debugging with editors, as current lua debuggers use the attach functionality - which expects C/C++/Rust (it just injects a .so/.dll). I'm happy to merge here if there is interest, but I'd presume that falls out of scope of this current project.
Hello,
I've noticed that some debug functions are implemented, but important ones (
getlocal,setlocal,gethook,sethook) to effectively debug the lua vm are currently stubs. Is this intentional? I know the luaerl repo has kept the debug functions as stubs because "its too implementation dependent", but before I were to work to implement those features I want to ask if this repo is accepting PRs for this. It probably makes sense to have two modes for the lua VM (debug/prod), as implementing these functions will probably slow down as it would have to force the compiler to stop throwing away register values.I also would like to implement a DAP file for better debugging with editors, as current lua debuggers use the
attachfunctionality - which expects C/C++/Rust (it just injects a.so/.dll). I'm happy to merge here if there is interest, but I'd presume that falls out of scope of this current project.