# DelveServerOptions

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

Configures the headless Delve debug server used for remote debugging of a Go application.

## Remarks

The server listens on the loopback interface. By default, it accepts a single debugger client
and relies on Delve's default same-user connection policy.
Set `AcceptMultiClient` only when the server must remain available after a debugger
disconnects or when multiple debugger clients need to attach.

## Definition

```go
type DelveServerOptions struct {
    Port              *float64 `json:"Port"`
    AcceptMultiClient *bool    `json:"AcceptMultiClient"`
    OnlySameUser      *bool    `json:"OnlySameUser"`
    ContinueOnStart   *bool    `json:"ContinueOnStart"`
    Log               *bool    `json:"Log"`
    LogOutput         *string  `json:"LogOutput"`
}
```

## Fields

- `Port`: `*float64` `optional` -- Gets the TCP port on which Delve listens. The default is `2345`.
- `AcceptMultiClient`: `*bool` `optional` -- Gets a value indicating whether Delve accepts multiple debugger clients. The default is `false`.
- `OnlySameUser`: `*bool` `optional` -- Gets a value indicating whether Delve allows connections only from the same operating system user. When `null`, Delve's default same-user policy is used.
- `ContinueOnStart`: `*bool` `optional` -- Gets a value indicating whether Delve continues the application immediately after startup. The default is `false`.
- `Log`: `*bool` `optional` -- Gets a value indicating whether Delve server logging is enabled. The default is `false`.
- `LogOutput`: `*string` `optional` -- Gets the Delve logging components enabled when `Log` is `true`. When `null` or empty, Delve uses its default logging components.
