Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithExecutableDebugSupport

Method
📦 Aspire.Hosting v17.0.0
func (ExecutableResource) 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().

Applies to

This method applies to the following types: