Does Visual Studio Code always debug C# code?

José Carlos Bodoque Huevos 0 Puntos de reputación
2024-03-30T22:08:39.2966667+00:00

I'm starting to program in C# and decided to install Visual Studio Code as my text editor and installed the extension called C# Dev Kit. When running the code (without debugging) with the following button:

does-visual-studio-code-always-debug-c-code-v0-7h2c8brgpcrc1

I noticed that the following command was being executed in the Visual Studio Code terminal:

imagen

Command: PS C:\Users\User\Desktop\Calculadora> & 'c:\Users\User.vscode\extensions\ms-dotnettools.csharp-2.22.5-win32-x64.debugger\x86_64\vsdbg.exe' '--interpreter=vscode' '--connection=2f353c5843504a368c832105e58f278a'

Apparently, this command is running a debugger called vsdbg.exe located in the C# extension folder. My question is why does this happen if I'm only running my code and not debugging it? Shouldn't It be running a command like "dotnet run" or something similar to just run it and not debug it? When running the code with the debug button, which is the following:

imagen

I noticed that it executed exactly the same command.

I have tried with other languages like C or C++, and it also seems that they always debug even when you're just running them without debugging.

Preguntas y respuestas (Q&A) de Microsoft
Preguntas y respuestas (Q&A) de Microsoft
Use esta etiqueta para compartir sugerencias, solicitudes de características y errores con el equipo de Microsoft Q&A. El equipo de Microsoft Q&A evaluará sus comentarios periódicamente y proporcionará actualizaciones a lo largo del proceso.
196 preguntas
0 comentarios No hay comentarios
{count} votos