# WithBlazorDebuggerBrowser

- Module: [Aspire.Hosting.Blazor](/reference/api/go/aspire.hosting.blazor.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `method`
- Defined on: [`BlazorWasmAppResource`](/reference/api/go/aspire.hosting.blazor/blazorwasmappresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Configures the browser launched when starting a debug session for the Blazor WebAssembly app. The value is read when the debugger is registered on the gateway, so call this before `WithBlazorClientApp` or `WithBlazorClientApp` attaches the app.

## Definition

```go
func (BlazorWasmAppResource) WithBlazorDebuggerBrowser(options ...*WithBlazorDebuggerBrowserOptions) BlazorWasmAppResource
```

## Parameters

- `options` (`...*WithBlazorDebuggerBrowserOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithBlazorDebuggerBrowserOptions` argument.

- `Browser` (`*string`) -- The browser to use for debugging. Defaults to `"msedge"`. Supported values include `"msedge"` and `"chrome"`.

## Returns

[`BlazorWasmAppResource`](/reference/api/go/aspire.hosting.blazor/blazorwasmappresource.md)

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

## Applies to

- [`BlazorWasmAppResource`](/reference/api/go/aspire.hosting.blazor/blazorwasmappresource.md)
