Skip to content

Add Documentation for Debugging C# Console Applications with Input Arguments #7624

Open

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.

image

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:

  1. How to use the ".NET: Generate assets for debugging" command to create the necessary launch.json configuration.
  2. 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    doc-enhancementsuggested addition or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions