Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithBrowserDebugger

Method
📦 Aspire.Hosting.JavaScript v17.0.0
func (JavaScriptAppResource) WithBrowserDebugger(options ...*WithBrowserDebuggerOptions) JavaScriptAppResource

Signature

methodWithBrowserDebuggerbuilder
Configures a browser debugger for the JavaScript application resource, enabling browser-based debugging through a child resource that launches when the parent application is ready.
WithBrowserDebugger(options ...*WithBrowserDebuggerOptions) JavaScriptAppResource
options...*WithBrowserDebuggerOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithBrowserDebuggerOptions argument.

Browser*stringThe browser to use for debugging. Defaults to "msedge". Supported values include "msedge" and "chrome".
JavaScriptAppResource

The resource builder.

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

Applies to

This method applies to the following types: