The extension provides the netcoredbg debug adapter. The adapter binary is downloaded automatically on first use; to use your own build instead:
Create .zed/debug.json in your project for explicit configurations:
[
{
"label": "Debug console app",
"adapter": "netcoredbg",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/bin/Debug/net10.0/App.dll",
"cwd": "$ZED_WORKTREE_ROOT",
"stopAtEntry": false,
"justMyCode": true
},
{
"label": "Attach to process",
"adapter": "netcoredbg",
"request": "attach",
"processId": "$ZED_PICK_PID"
}
]Debugging a dotnet run task builds the project, asks MSBuild for the
assembly it produced, and launches netcoredbg against it. Arguments after --
are passed to the program. Start it from a file in the project's folder.
Main methods and files of top-level statements get a run button in the
gutter.
To develop this extension, see the Developing Extensions section of the Zed docs.
{ "dap": { "netcoredbg": { "binary": "/usr/local/bin/netcoredbg" } } }