Skip to content

Debug API #4

@mxpv

Description

@mxpv

luaz should provide a high level debugger interface:

  • Should provide API to retrieve various info about execution.
    • Should not require user to manipulate Lua stack.
  • Function calls should support breaks dd4f2da
  • Set break points d61f1b1
  • Should provide APIs to install callbacks eb513fb
  • Retrieve trace 7ac34e0
  • Debug break on Lua side?
  • Documentation
  • Guided tour update

API surface

  • lua_stackdepth(lua_State* L);
  • lua_getinfo(lua_State* L, int level, const char* what, lua_Debug* ar);
  • lua_getargument(lua_State* L, int level, int n);
  • lua_getlocal(lua_State* L, int level, int n);
  • lua_setlocal(lua_State* L, int level, int n);
  • lua_getupvalue(lua_State* L, int funcindex, int n);
  • lua_setupvalue(lua_State* L, int funcindex, int n);
  • lua_singlestep(lua_State* L, int enabled);
  • lua_breakpoint(lua_State* L, int funcindex, int line, int enabled);
  • lua_debugtrace(lua_State* L);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions