Step through behavior, task every, and top-level every trigger loops with the Spanda debug
adapter (spanda-dap) and the VS Code extension.
cargo build -p spanda-dap -p spanda-cli --release
export PATH="$PWD/target/release:$PATH"
Install the Spanda VS Code extension (marketplace or local VSIX).
The extension contributes a Spanda debug type. Default launch.json entry:
{
"version": "0.2.0",
"configurations": [
{
"type": "spanda",
"request": "launch",
"name": "Spanda: Debug current file",
"program": "${file}"
}
]
}
examples/showcase/killer_demo.sdbehavior patrol() or task control_loopnext) to advance through task every 50ms / loop every 100ms iterationsCLI equivalent (breakpoint smoke test):
spanda debug examples/showcase/killer_demo.sd --break 60
| Capability | Status |
|---|---|
| Breakpoints on line numbers | Supported |
Step over (next) |
Advances periodic tasks, loop bodies, and every trigger ticks |
| Step in / step out | Experimental |
| Variables / locals | Per-frame snapshot at pause |
task every loops |
Step over pauses between task ticks when breakpoints hit |
every trigger bodies |
Debug session enters from behavior, task, or every trigger body (Phase 35) |
| Issue | Fix |
|---|---|
spanda-dap not found |
Build spanda-dap; set spanda.cliPath to target/release/spanda |
No pause on task every |
Set breakpoint inside task body; use Step Over after first hit |
| LSP works but debug fails | Debug uses spanda-dap, separate from LSP |
crates/spanda-dap/ — DAP server source