# SupportsDebuggingAnnotation

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.5.3`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/SupportsDebuggingAnnotation.cs)
- Implements: [IResourceAnnotation](/reference/api/csharp/aspire.hosting/iresourceannotation.md)

Indicates that a resource can be launched by an IDE or extension host so it can be debugged, instead of being started as a plain process by Aspire.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class SupportsDebuggingAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
    // ...
}
```

## Remarks

Added by [ResourceBuilderExtensions.WithDebugSupport(IResourceBuilder<T>, Func<string, TLaunchConfiguration>, string)](/reference/api/csharp/aspire.hosting/resourcebuilderextensions/methods.md#withdebugsupport-iresourcebuilder-t-func-string-tlaunchconfiguration-string) (or its asynchronous overload). The annotation is only honored while a debug session is active; use [DebugSupportExtensions.SupportsDebugging(IResource, IConfiguration, SupportsDebuggingAnnotation?)](/reference/api/csharp/aspire.hosting/debugsupportextensions/methods.md#supportsdebugging-iresource-iconfiguration-supportsdebuggingannotation) to test for that, and [DebugSupportExtensions.CreateLaunchConfigurationAsync(IResource, string, CancellationToken)](/reference/api/csharp/aspire.hosting/debugsupportextensions/methods.md#createlaunchconfigurationasync-iresource-string-cancellationtoken) to inspect the launch configuration the resource will send.

## Properties

- [LaunchConfigurationType](/reference/api/csharp/aspire.hosting/supportsdebuggingannotation/properties.md#launchconfigurationtype) : `string` `get` -- Gets the launch configuration type identifier, for example [KnownLaunchConfigurationTypes.Project](/reference/api/csharp/aspire.hosting/knownlaunchconfigurationtypes/fields.md#project).
