# DenoAppResource.withDenoInspect

- Module: [Aspire.Hosting.JavaScript](/reference/api/typescript/aspire.hosting.javascript.md)
- Defined on: [DenoAppResource](/reference/api/typescript/aspire.hosting.javascript/denoappresource.md)
- Version: `13.6.0`
- Kind: `method`

Enables a Deno inspector mode, optionally at `hostPort` (for example `127.0.0.1:9229`).

## Definition

```typescript
interface DenoAppResource {
  // ... omitted for brevity
  withDenoInspect(
      mode?: DenoInspectMode,
      hostPort?: string): DenoAppResource;
}
```

## Signature

```typescript
withDenoInspect(
    mode?: DenoInspectMode,
    hostPort?: string): DenoAppResource
```

## Parameters

- `mode` ([DenoInspectMode](/reference/api/typescript/aspire.hosting.javascript/denoinspectmode.md)) `optional` `= Inspect`
- `hostPort` (`string`) `optional`

## Returns

[DenoAppResource](/reference/api/typescript/aspire.hosting.javascript/denoappresource.md) `builder`

## Defined on

- [DenoAppResource](/reference/api/typescript/aspire.hosting.javascript/denoappresource.md) -- `handle`
