dotnet / dotnet/vscode-csharp

Improve launch.json Documentation and Examples

Open
#8,869 0 comments 0 reactions 0 assignees View on GitHub
Debugger untriaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

Despite my best efforts, I haven’t been able to find any examples showing how to configure exception break-mode behavior on a per-exception basis. The Debug Adapter Protocol spec describes this under ExceptionOptions (https://microsoft.github.io/debug-adapter-protocol/specification#_exceptionoptions
), but the section is difficult to interpret in practice.

VS Code doesn’t appear to use the following configuration. Without examples that demonstrate the expected behavior, I can only guess whether this is correct.

```
{
"configurations": [
{
"name": "Launch App",
"type": "dotnet",
"request": "launch",
"exceptionOptions": [
{
"path": [
"System.OperationCanceledException"
],
"breakMode": "never"
}
]
}
]
}
```

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.