Description
As a C# developer, I often need to debug console applications that take input arguments. However, the current Visual Studio Code documentation does not provide clear guidance on how to set up debugging for such applications.
When I attempt to debug a C# console application with arguments, the dynamically generated debug configuration doesn’t support providing arguments and also doesn't actually save any launch.json
files in my VSCode workspace. After some trial and error, I discovered that the command ".NET: Generate Assets for Build and Debug" that actually adds the launch.json
configuration, which I could then modify to include command line arguments.
Request:
I would like to request that the documentation be updated to include instructions for debugging C# console applications with input arguments. This should ideally cover:
- How to use the ".NET: Generate assets for debugging" command to create the necessary
launch.json
configuration. - How to modify the generated
launch.json
to specify input arguments for the application.
Adding this information would help other developers who face similar challenges and make the process of debugging C# applications in Visual Studio Code more straightforward.
Relevant Documentation Page:
Please update this information on the Visual Studio Code documentation page for C# debugging.
Thank you for considering this improvement!