Skip to content

AppHost configuration to not attach debugger to a project #4761

@JamesNK

Description

@JamesNK

Is there an existing issue for this?

  • 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions