Skip to content

Add embedded Lua debugger and DAP adapter - #397

Merged
akeit0 merged 1 commit into
mainfrom
codex/lua-dap-debugger
Nov 3, 2026
Merged

akeit0 merged 1 commit into
mainfrom
codex/lua-dap-debugger

Conversation

@akeit0

@akeit0 akeit0 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Adds an opt-in debugger and attach-only DAP server for application-owned Lua states and their coroutines. Hosts can pause execution, use source breakpoints and stepping, inspect stack frames and variables, evaluate expressions, and edit locals, upvalues, and named globals while preserving Lua hooks and shared bytecode.

Supports asynchronous pauses that release the host thread and synchronous pauses that service debugger work on the stopped thread. Includes reconnectable sessions, source mapping and source text providers, a minimal VS Code connector, game/service hosting examples, documentation, debugger benchmarks, and CI coverage.

Validation:

  • Release solution build succeeds with zero warnings or errors across all configured targets.
  • CSharpier passes for all 406 files.
  • 3,502 runtime tests, 72 debugger tests, and 42 DAP tests pass on each of .NET 8 and .NET 10.
  • Interpreter benchmark workload and bytecode interoperability verification passes.
  • Game/asynchronous and service/synchronous sample hosts complete smoke runs.

The feature and its follow-up fixes are consolidated into one commit.

Add VM checkpoints, stepping, source breakpoints, suspended-stack inspection,
evaluation, and variable editing with asynchronous and synchronous pause modes.

Provide a reconnectable DAP listener for application-owned Lua states, a minimal
VS Code connector, hosting examples, documentation, benchmarks, and tests.
@akeit0
akeit0 merged commit 0e46bf8 into main Nov 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant