# DelveServerOptions

- Kind: `class`
- Package: [Aspire.Hosting.Go](/reference/api/csharp/aspire.hosting.go.md)
- Version: `13.5.3-preview.1.26425.3`
- Namespace: `Aspire.Hosting.Go`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting.Go/DelveServerOptions.cs)

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

## Definition

```csharp
namespace Aspire.Hosting.Go;

public sealed class DelveServerOptions
{
    // ...
}
```

## ATS metadata

### ATS DTO

- Serialized as a plain JSON object without a `$type` discriminator.

## 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 [DelveServerOptions.AcceptMultiClient](/reference/api/csharp/aspire.hosting.go/delveserveroptions/properties.md#acceptmulticlient) only when the server must remain available after a debugger disconnects or when multiple debugger clients need to attach.

## Constructors

- [DelveServerOptions](/reference/api/csharp/aspire.hosting.go/delveserveroptions/constructors.md#constructor)

## Properties

- [AcceptMultiClient](/reference/api/csharp/aspire.hosting.go/delveserveroptions/properties.md#acceptmulticlient) : `bool` `get; init` -- Gets a value indicating whether Delve accepts multiple debugger clients. The default is `false`.
- [ContinueOnStart](/reference/api/csharp/aspire.hosting.go/delveserveroptions/properties.md#continueonstart) : `bool` `get; init` -- Gets a value indicating whether Delve continues the application immediately after startup. The default is `false`.
- [Log](/reference/api/csharp/aspire.hosting.go/delveserveroptions/properties.md#log) : `bool` `get; init` -- Gets a value indicating whether Delve server logging is enabled. The default is `false`.
- [LogOutput](/reference/api/csharp/aspire.hosting.go/delveserveroptions/properties.md#logoutput) : `string?` `get; init` -- Gets the Delve logging components enabled when [DelveServerOptions.Log](/reference/api/csharp/aspire.hosting.go/delveserveroptions/properties.md#log) is `true`. When `null` or empty, Delve uses its default logging components.
- [OnlySameUser](/reference/api/csharp/aspire.hosting.go/delveserveroptions/properties.md#onlysameuser) : `bool?` `get; init` -- 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.
- [Port](/reference/api/csharp/aspire.hosting.go/delveserveroptions/properties.md#port) : `int` `get; init` -- Gets the TCP port on which Delve listens. The default is `2345`.

## Examples

Configure a Delve server that continues the application immediately and accepts multiple debugger clients:

```csharp
builder.AddGoApp("api", "../go-api")
       .WithDelveServer(new DelveServerOptions
       {
           AcceptMultiClient = true,
           ContinueOnStart = true
       });
```
