Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDelveServer

Method
📦 Aspire.Hosting.Go v17.0.0
func (GoAppResource) WithDelveServer(options ...*DelveServerOptions) GoAppResource

Signature

methodWithDelveServerbuilder
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.
WithDelveServer(options ...*DelveServerOptions) GoAppResource
options...*DelveServerOptionsOptional settings, described under Options.

Optional parameters are passed as the existing *DelveServerOptions struct.

GoAppResource

The resource builder.

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

Applies to

This method applies to the following types: