DebugSupportExtensions
Classstaticnet10.0
Extension methods for inspecting whether a resource will be launched by an IDE or extension host for debugging rather than started as a plain process by Aspire.
namespace Aspire.Hosting.ApplicationModel;
public static class DebugSupportExtensions{ // ...}Methods3
Section titled MethodsCreateLaunchConfigurationAsync(IResource, string, CancellationToken)extensionats ignoredTask<object> Creates the launch configuration that this resource sends to the IDE for the given launch mode.
HasLaunchToolArgsOwnedBy(IResource, SupportsDebuggingAnnotation)extensionats ignoredbool Determines whether the launch configuration performs the resource's tool invocation itself, meaning the resource's launch tool arguments must not also be passed to the launched program.
SupportsDebugging(IResource, IConfiguration, SupportsDebuggingAnnotation?)extensionats ignoredbool Determines whether the resource will be launched by the IDE for debugging in the current session.