# DenoAppResource.WithDenoInspect

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

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

## Definition

```go
type DenoAppResource interface {
    // ... omitted for brevity
    WithDenoInspect(options ...*WithDenoInspectOptions) DenoAppResource
}
```

## Signature

```go
WithDenoInspect(options ...*WithDenoInspectOptions) DenoAppResource
```

## Parameters

- `options` (`...*WithDenoInspectOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithDenoInspectOptions` argument.

- `Mode` ([`*DenoInspectMode`](/reference/api/go/aspire.hosting.javascript/denoinspectmode.md)) -- The inspector mode to enable.
- `HostPort` (`*string`) -- The optional inspector host:port value.

## Returns

[`DenoAppResource`](/reference/api/go/aspire.hosting.javascript/denoappresource.md) -- The resource builder.

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

## Defined on

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