luars_debugger
luars_debugger is an EmmyLua-compatible debugger module for luars, loaded via require("emmy_core"). It provides a DAP-compatible debugging interface, allowing IDEs to connect and debug Lua code running on luars.
The recommended integration path now uses luars's unified external-library API.
Install
Add the crate to Cargo.toml:
[]
= "0.18"
= "0.18"
Then install the debugger into your runtime:
use ;
use Library;
let mut vm = new;
vm.install_library?;
// Lua can now load the debugger with require("emmy_core")
If you use the high-level API, the same installation flow is available there too:
use ;
use Library;
let mut lua = new;
lua.install_library?;
Custom module name
use ;
use Library;
let mut vm = new;
vm.install_library?;
// Lua can now load the debugger with require("debugger")
The remaining steps are the same as for the EmmyLua debugger. See the EmmyLua debugger documentation: https://github.com/EmmyLua/EmmyLuaDebugger
If you need a DAP implementation, you can use: https://github.com/EmmyLuaLs/emmylua_dap