Debug Adapter Protocol (`spd`)

spd is the official Debug Adapter Protocol daemon. It translates VS Code and editor debug commands into native LLVM runtime execution breakpoints.

VS Code `launch.json` Setup

.vscode/launch.json
1{
2 "version": "0.2.0",
3 "configurations": [
4 {
5 "name": "Debug SP Program",
6 "type": "sp",
7 "request": "launch",
8 "program": "${workspaceFolder}/src/main.sp",
9 "stopOnEntry": false
10 }
11 ]
12}

Features Supported

  • Breakpoints: Line breakpoints and conditional pause execution.
  • Stepping: Step Over, Step Into, and Step Out.
  • Scopes & Variables: Local stack frame variable inspection with type labels.
  • Call Stack: Multi-frame call stack traceback with source mapping.