dotnet / dotnet/vscode-csharp

Unable to configure commandline args with help

Open
#6,916 5 comments 5 reactions 0 assignees View on GitHub
Debugger Feature Request Launch and Task Assets
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

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.

```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#?"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.