Debug Zig programs with Bugzap: breakpoints, watchpoints, stepping, backtraces with inline frames, and values rendered with Zig semantics — even in optimized builds.
The debugger comes bundled — install and press F5. (To use your own build
instead, set Settings → bugzap.path or put bugzap on the PATH.)
{
"type": "bugzap",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/zig-out/bin/my-program.exe"
}
request: "attach" with a processId also works.