Documentation
¶
Overview ¶
luadbg-dap is a Debug Adapter Protocol (DAP) server for the luapure Lua VM, served over TCP. An editor (e.g. VS Code with an attach configuration pointing at host:port) connects and drives breakpoints, stepping, stack and variable inspection, and expression evaluation.
luadbg-dap -listen :4711 -source-dir ./scripts luadbg-dap -listen 127.0.0.1:4711 -sandbox
A program is launched by id (the DAP launch 'program' argument) and its source is loaded from -source-dir/<id>[.lua]; the editor fetches source text over DAP 'source' requests, so it needs no local copy. Embed the debugdap package with your own SourceResolver to load from a database instead.
Click to show internal directories.
Click to hide internal directories.