# ExecutableResource.withExecutableDebugSupport

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Defined on: [ExecutableResource](/reference/api/typescript/aspire.hosting/executableresource.md)
- Version: `17.0.0`
- Kind: `method`

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;
}
```

## Signature

```typescript
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`

## Defined on

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