Skip to content

Unable to configure commandline args with help #6916

Open
@richlander

Description

@richlander

I was unable to figure out how to enable command line args using this page: https://code.visualstudio.com/docs/csharp/debugger-settings

I asked Bing Copilot and it gave me the answer I wanted with copy/paste syntax right away. It gave me a helpful explanation, plus the following JSON.

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "coreclr",
            "request": "launch",
            "name": "Debug MyApp",
            "program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/MyApp.dll",
            "args": ["arg1", "arg2", "arg3"]
        }
    ]
}

Prompt: "how do I specify command line arguments in vs code launch.json for C#?"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions