Skip to content

Implementing get/setlocal, get/sethook, upvalue #423

Description

@sspivey98

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions