# withExecutableDebugSupport

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Adds VS Code-compatible debug metadata for an executable resource.

## Definition

```typescript
interface ExecutableResource {
  // ... omitted for brevity
  withExecutableDebugSupport(
    launchConfigurationType: string,
    scriptPath: string,
    runtimeExecutable?: string,
    launchMethod?: string): ExecutableResource
}
```

## Parameters

- `launchConfigurationType` (`string`)
- `scriptPath` (`string`)
- `runtimeExecutable` (`string`) `optional`
- `launchMethod` (`string`) `optional`

## Returns

[ExecutableResource](/reference/api/typescript/aspire.hosting/executableresource.md) `builder`

## Applies to

- [ExecutableResource](/reference/api/typescript/aspire.hosting/executableresource.md)
- [DotnetToolResource](/reference/api/typescript/aspire.hosting/dotnettoolresource.md)
