Add Debugger support section (#32287)

pull/32299/head
Luke Latham 2024-04-11 05:07:44 -04:00 committed by GitHub
parent 3f162a6025
commit 791257f54b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 21 additions and 0 deletions

View File

@ -341,6 +341,27 @@ Breakpoints are **not** hit during app startup before the debug proxy is running
---
<!-- UPDATE 9.0 Remove the following versioning on the Debugger
support section at 9.0 GA -->
:::moniker range=">= aspnetcore-8.0"
## Debugger support
Debugging is enabled for the runtime when debugger support is enabled with `<DebuggerSupport>{VALUE}</DebuggerSupport>`, where the `{VALUE}` place holder is either `true` or `false`.
By default, the Blazor framework *disables* debugger support for all non-Debug configurations. To enable debugger support for a non-Debug configuration, add a `<DebuggerSupport>` property to the app's project file.
In the following example, debugger support is enabled for the custom "`DebugCustom`" configuration:
```xml
<DebuggerSupport Condition="'$(Configuration)' == 'DebugCustom'">true</DebuggerSupport>
```
For more information, see [Blazor WebAssembly custom debugger configuration (`dotnet/runtime` #96239)](https://github.com/dotnet/runtime/issues/96239).
:::moniker-end
:::moniker range="< aspnetcore-8.0"
## Debug a hosted Blazor WebAssembly app in an IDE