Skip to content
Docs Try Aspire
Docs Try

GoAppResource.withDelveServer

Method
📦 Aspire.Hosting.Go v13.4.0-preview.1.26281.18
interface GoAppResource {
// ... omitted for brevity
withDelveServer(port?: number): GoAppResource;
}

Signature

method withDelveServer builder
Starts a headless Delve debug server so that any DAP-compatible client can attach remotely. The application is launched as `dlv --headless=true --listen=127.0.0.1:<port> --api-version=2 debug .` instead of `go run .`. Delve must be available on the PATH.
withDelveServer(port?: number): GoAppResource
port number optional = 2345
GoAppResource

Defined on

This method is defined on the following type: