Not sure if you good folks have noticed but Visual Studio has drastically improved the debugging experience for Blazor WebAssembly apps targeting .NET 9 or later. The problem, simply stated, is that debugging client side code was lacking many features you rely on.
Visual Studio now offers an improved debugging experience for Blazor WebAssembly apps targeting .NET 9 or later:
- Data types shown in the debugger now match the expected .NET data types.
- Type members and member visibility use expected icons.
- The displayed call stack is cleaned up to only shows the .NET call stack and correctly honors the Just My Code setting.
- The modules window is now supported.
- Expression evaluation support in the Immediate window and for watches and conditional breakpoints is expanded and improved.
To enable the new preview debugging experience:
- Install the latest .NET 9 SDK.
- Update your Blazor app to target .NET 9.
- Enable the Enable new .NET 9+ Mono debugger setting.