Skip to content

"Break on Unhandled Exception" not available when debugging Aspire in Visual Studio Code #17536

@sander1095

Description

@sander1095

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I installed the Aspire VSCode extension and chose to "Run and debug" my C# Aspire project with it.

When I use C# Dev Kit and debug a C# project, I can select that the debugger should break on any exception:

Image

This is not available when debugging with Aspire:

Image

This is critical for any non-trivial development setup; if exceptions happen I want to break and debug them. Now this isn't possible.

Expected Behavior

When debugging my C# aspire project in VSCode with the Aspire extension, it should be able to break on any exception.

Steps To Reproduce

  • Create an aspire project with C#.
  • Install VSCode extension
  • Debug the project
  • Try to configure that debugger breaks on any exception, which isn't possible. If you execute a code path that throws, it won't break on that exception.

Then:

  • Debug the csproj with C# Dev kit
  • See that breaking on unhandled exceptions IS available

Exceptions (if any)

No response

Aspire doctor output

Aspire Environment Check

.NET SDK
✅ .NET 10.0.300 installed (arm64)

Container Runtime
✅ Docker v29.4.3: running (auto-detected (default)) ← active

Environment
✅ HTTPS development certificate is trusted

Summary: 3 passed, 0 warnings, 0 failed

Anything else?

VSCode insiders 1.122.0-insider
Aspire extension: 1.0.9

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions