# WithDelveServer

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

Starts a configurable headless Delve debug server so that DAP-compatible clients can attach remotely. The application is launched with `dlv debug` instead of `go run`. Delve must be available on the PATH.

## Remarks

The server listens on `127.0.0.1` and accepts a single debugger client by default.
Set `AcceptMultiClient` to `true` only when
multiple clients or reconnections are required.

## Definition

```go
func (GoAppResource) WithDelveServer(options ...*DelveServerOptions) GoAppResource
```

## Parameters

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

## Options

Optional parameters are passed as the existing [`*DelveServerOptions`](/reference/api/go/aspire.hosting.go/delveserveroptions.md) struct.

## Returns

[`GoAppResource`](/reference/api/go/aspire.hosting.go/goappresource.md) -- The resource builder.

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

## Applies to

- [`GoAppResource`](/reference/api/go/aspire.hosting.go/goappresource.md)
