DelveServerOptions
Classsealednet10.0
Configures the headless Delve debug server used for remote debugging of a Go application.
namespace Aspire.Hosting.Go;
public sealed class DelveServerOptions{ // ...}7 members
Remarks
Section titled RemarksThe 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 only when the server must remain available after a debugger disconnects or when multiple debugger clients need to attach.
Constructors1
Section titled ConstructorsProperties6
Section titled PropertiesAcceptMultiClientget; initbool Gets a value indicating whether Delve accepts multiple debugger clients. The default is
false. ContinueOnStartget; initbool Gets a value indicating whether Delve continues the application immediately after startup. The default is
false. Logget; initbool Gets a value indicating whether Delve server logging is enabled. The default is
false. LogOutputget; initstring? Gets the Delve logging components enabled when
DelveServerOptions.Log is true. When null or empty, Delve uses its default logging components. OnlySameUserget; initbool? 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. Portget; initint Gets the TCP port on which Delve listens. The default is
2345. Examples
Section titled ExamplesConfigure a Delve server that continues the application immediately and accepts multiple debugger clients:
builder.AddGoApp("api", "../go-api") .WithDelveServer(new DelveServerOptions { AcceptMultiClient = true, ContinueOnStart = true });