Skip to content
zed-extensionsPublic

About

C# support

Resources

Stars

189 stars

Watchers

12 watching

Forks

Repository files navigation

Zed C#

A C# extension for Zed.

Debugging

The extension provides the netcoredbg debug adapter. The adapter binary is downloaded automatically on first use; to use your own build instead:

{
  "dap": {
    "netcoredbg": {
      "binary": "/usr/local/bin/netcoredbg"
    }
  }
}

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.

Runnables

Main methods and files of top-level statements get a run button in the gutter.

Development

To develop this extension, see the Developing Extensions section of the Zed docs.

About

C# support

Resources

Stars

189 stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages