Skip to main content
Back

Zed Brings Full .NET Debugging to Its C# Extension Without Microsoft's License

Zed's official C# extension now bundles netcoredbg, giving .NET developers in-editor breakpoint debugging without any manual adapter setup.

Repo, Full Access
  • Zed's official C# extension now bundles netcoredbg for in-editor .NET debugging.
  • Uses Samsung's MIT-licensed debugger, avoiding Microsoft's VS Code-only licensing restrictions.
  • Speaks the Debug Adapter Protocol, so Zed's native debugger UI handles breakpoints and stepping.
  • The extension auto-downloads the netcoredbg binary, or points to a system install.
  • Configuration lives in .zed/debug.json with standard launch and attach modes.
  • Limited to managed CoreCLR code; no native interop or legacy .NET Framework debugging.

Zed has announced integrated .NET debugging in its official C# extension. Developers can now set breakpoints, step through code, inspect variables, and view call stacks without leaving the editor.

The extension uses Samsung’s open-source NetCoreDbg adapter. Microsoft’s .NET debugger is proprietary, and its license limits use to Microsoft development products. Those terms prevent editors such as Zed from bundling it. NetCoreDbg’s MIT license allows Zed to download and integrate the adapter directly.

An Open Adapter Clears the Licensing Barrier

The NetCoreDbg project debugs applications running on CoreCLR, the runtime used by .NET Core and modern .NET releases. It implements the Debug Adapter Protocol, a standard interface that carries commands and debugging data between an editor and a debugger. Zed already supports that protocol, so the adapter can connect its debugger interface to a running .NET process.

NetCoreDbg also implements GDB/MI and can run from the command line, although Zed communicates with it through the Debug Adapter Protocol.

  • Launch a .NET process or attach to one that is already running
  • Set breakpoints and step into, over, or out of code
  • Inspect local variables, call stacks, and execution state
  • Debug supported CoreCLR applications across available platforms

From Installation to Breakpoint

Developers can install the C# extension from Zed’s extension registry. The extension then attempts to download a compatible NetCoreDbg executable automatically, avoiding a separate manual installation on supported systems.

  1. Install the C# extension in Zed.
  2. Build the target project so its assembly exists on disk.
  3. Create a launch configuration through Zed’s debugger interface or in .zed/debug.json.
  4. Choose the configuration and start the debugger.

A minimal launch configuration points NetCoreDbg at the compiled application assembly:

[
  {
    "label": "Debug .NET App",
    "adapter": "netcoredbg",
    "request": "launch",
    "program": "${ZED_WORKTREE_ROOT}/bin/Debug/net8.0/App.dll",
    "cwd": "${ZED_WORKTREE_ROOT}"
  }
]

The target framework directory and assembly name must match the project’s build output. For example, projects targeting another .NET release should replace net8.0, while App.dll should be replaced with the generated assembly name.

Developers who already maintain a system installation of NetCoreDbg can set the extension’s binary path to that executable instead of using the downloaded copy.

Where the Debugger Fits

Workflow Support
ASP.NET request handlers Breakpoints, stepping, stacks, and variable inspection
Unit tests Debugging when launched through a compatible project or test configuration
Workers and services Launch or attach workflows
Managed CoreCLR code Supported
Native and managed mixed-mode code Outside NetCoreDbg’s scope
Legacy .NET Framework targets Outside NetCoreDbg’s scope
Visual Studio diagnostic features Features such as mixed-mode diagnostics and Visual Studio-specific tooling are unavailable

The integration covers the common edit, build, and debug loop for modern C# projects. Zed users who previously relied on custom adapters, external terminals, or a second editor can now keep that workflow inside the official extension.