Skip to content

DAP Plugin ​

Help query: "What does the dap plugin do?" / "How do I use dap in Volt?"

The dap plugin integrates Debug Adapter Protocol sessions. It launches adapters (codelldb, gdb, and others), manages breakpoints, stepping, threads/stack frames, locals/expressions panes, and a debug REPL.

Package namedap
Moduleuser/dap.rs

What it does ​

  • Start, stop, restart, continue, and pause debug sessions
  • Step over/into/out and manage breakpoints / logpoints
  • Inspect locals, expressions, and use the debug REPL
  • Switch threads and stack frames

Commands ​

CommandDescription
dap.startStarts a debug session.
dap.stopStops the active debug session.
dap.restartRestarts the active debug session.
dap.continueContinues execution.
dap.pausePauses execution.
dap.stepSteps over.
dap.step-intoSteps into.
dap.step-outSteps out.
dap.toggle-breakpointToggles a breakpoint at the cursor.
dap.replOpens the DAP REPL.
dap.evalEvaluates an expression.
dap.install-serverInstalls or picks a debug adapter.

Keybindings ​

ChordCommandScope
F5dap.start / dap.continueGlobal start; Dap scope continue
F10dap.stepDap
F11dap.step-intoDap
Space t bdap.toggle-breakpointWorkspace

Notes ​

Additional commands cover breakpoint conditions, logpoints, expression add/remove, goto-breakpoint, toggle-variable, and start-<adapter> variants. See user/dap.rs.

C# start (dap.start-sharpdbg, or dap.start when the compile step is dotnet build) can debug a solution or project that is not at the workspace root, including a workspace with several projects. When more than one .sln, .slnx, or .csproj exists, Build with dotnet lists dotnet build <relative path> for each target, nearest project to the open file first, plus Start without compiling. A single target outside the workspace root is built with dotnet build <relative path>; a single target in the root still uses dotnet build. After the build target is chosen, a Compiling notice (status Working) and a live compile popup stay up until the build finishes.

After that build, the debug assembly is an entry DLL only: AssemblyName when set, otherwise the directory that contains the .csproj (for example dotnet_api/api.csproj → dotnet_api.dll) and the project file stem (api.dll). Search is under that project's bin tree (and OutputPath when set). A solution uses the entry assemblies of the projects it lists. Executable projects (OutputType Exe or WinExe) sort first. One match is used automatically; several open Debug assembly. Dependency DLLs are not listed.

Volt — modal editor platform · docs optimized for in-editor help search