A debugger for .NET C# #40119
Replies: 7 comments 19 replies
|
@ccidral you can use the debugger with c#, you just need to use |
|
downloaded netcoredbg.exe x64 zip. settings.json {
"dap": {
"netcoredbg": {
"binary": "C:/Users/MyUser/.netcoredbg/netcoredbg.exe",
"args": ["--interpreter=vscode"]
}
}
}The tasks works when run directly through Zed. tasks.json [
{
"label": "build",
"command": "dotnet",
"show_command": true,
"args": ["build"],
"cwd": "$ZED_WORKTREE_ROOT"
}
]debug.json [
{
"adapter": "netcoredbg",
"label": "DotnetHelloWorld - Debug",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/bin/Debug/net9.0/DotnetHelloWorld.dll",
"args": [],
"stopOnEntry": false,
"cwd": "$ZED_WORKTREE_ROOT"
}
]But doesn't show when I press F5 to start debug. |
|
https://github.com/qwadrox/zed-netcoredbg?tab=readme-ov-file I got it working by installing this as a Dev extension and creating the debug.json. You need to be able to got clone the above and run cargo up to compile for zed to install it. Then you can use netcoredbg. |
|
does it support windows now? |
|
FYI I got zed working and debugging my really large C# project with breakpoints and variables and expressions. This is really most of what I need. Not really missing VS Code so far! |
|
To all, generally it seems possible to get C# code debugging. However, dotnet as a whole (cshtml, etc) is not a first class citizen yet. |
|
I made a proxy that let's Zed editor debug .Net application using the vsdbg (The command-line visual studio debugger used by tools like Visual Studio Code and Visual Studio to debug .NET). You can check it out if you want it's simple to use and install and it has zero npm dependencies. |
Uh oh!
There was an error while loading. Please reload this page.
I couldn't find a C# debugger for Zed, maybe I missed something so before I open a issue I think it's better to open a discussion first.
Ever since I migrated from vscode to nvim the only missing piece for me is a decent C# debugger in nvim. Yes there is debugging support for that in nvim but it's kind of clunky, so whenever I need to use a debugger I have to open vscode. And since I've been trying to migrate from nvim to Zed, a debugger is also an important piece that's missing. How hard would it be to implement a debugger for .NET/C# in Zed?
All reactions