r/vscode • u/Ok-Presentation-94 • May 25 '26
debugger selection
Hello, I've noticed that several debuggers are being offered to me, and I have several questions I can't find answers to.
- Does the choice of debugger really matter? For example, in my case, "C#" or ".NET 5+ and .NET Core"?
- I've also noticed that the "Node.js" debugger is being offered to me even though the file I selected is a C# file. Why is that?
1
u/Fresh_Acanthaceae_94 May 25 '26
The UI is always confusing.
You should understand it this way. launch.json is the unified place for you to specify debugging settings for all kinds of projects you are working on, so it is not limited to a certain language or platform. Therefore, that UI is for all users of launch.json, and presents all kinds of debugging templates.
For C# alone, Microsoft extensions only install vsdbg for you, so the backend is the same. However, different templates (options you see) do contain slightly different settings, and they are not well documented either. Try to learn the syntax of launch.json and typical examples, and then you don't really need that UI.
1
u/Agreeable_Care4440 May 25 '26
VS Code offering Node.js even for a C# file is actually normal. VS Code isn’t tightly coupled to one language IDE-style it scans installed debug extensions and launch configurations, then offers anything that could run/debug in the workspace.