Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ExecutableResource.WithExecutableDebugSupport

Method
📦 Aspire.Hosting v17.0.0
type ExecutableResource interface {
// ... omitted for brevity
WithExecutableDebugSupport(
launchConfigurationType string,
scriptPath string,
options ...*WithExecutableDebugSupportOptions,
) ExecutableResource
}

Signature

methodWithExecutableDebugSupportbuilder
Adds VS Code-compatible debug metadata for an executable resource.
WithExecutableDebugSupport(
launchConfigurationType string,
scriptPath string,
options ...*WithExecutableDebugSupportOptions,
) ExecutableResource
launchConfigurationTypestringThe launch configuration type understood by the extension.
scriptPathstringThe script path, relative to the executable working directory when not rooted.
options...*WithExecutableDebugSupportOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithExecutableDebugSupportOptions argument.

RuntimeExecutable*stringThe optional runtime executable to use in the launch configuration.
LaunchMethod*stringThe optional launch method to use in the launch configuration.
ExecutableResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: