microsoft / microsoft/aspire

AppHost configuration to not attach debugger to a project

Open
#4,761 5 comments 10 reactions 0 assignees View on GitHub
area-tooling
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

It would be useful to be able to configure a .NET project that you don't want the debugger attached when the app host is run with debugger.

I have a niche scenario where I explicitly don't want the debugger because the library has different behavior depending on whether the debugger is attached or not.

A more common ask for this is you don't want to debug into a particular app or be alerted by exceptions thrown in the app. There would also be performance benefits to not attaching the debugger to apps when not wanted.

### Describe the solution you'd like

An API in the app host to configure a .NET project not to be launched with the debugger attached.

### Additional context

_No response_

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.