-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Description
I have found that the build property WasmFingerprintAssets has been the cause of my severely impaired debugging experience on a WASM Browser App (SDK Microsoft.NET.Sdk.WebAssembly).
Stepping works somehow, control flow etc reflects fine, but anything related to types or locals is showing the error below. I have not been able to find any sensible logging explaining why, I managed to find this by stripping my solution down step by step.
The browser console contains the following message, a couple dozen times.
Reproduction Steps
A minimal repro that i verified on a sample project:
- Download the WASMBrowserAppImportExportInterop sample project
- Add
<WasmFingerprintAssets>false</WasmFingerprintAssets>to the.csproj - Rebuild
- Launch a debugging session from Visual Studio (I used 2026)
Expected behavior
The debugging experience remains the same with or without the WasmFingerprintAssets property set.
Actual behavior
Locals and type information is not available during debugging. Stepping still works.
Anything like a (quick)watch of local inspection attempt results in the message Internal error in the C# compiler.
Regression?
Known Workarounds
Keep WasmFingerprintAssets set to true resolves the debugging issues.
Configuration
Built with the latest .NET 10.0.100 SDK bundle. Running on the Mono wasm runtime.
Windows 10/11 same problem.
I presume this is not specific to my machine configuration.
Its happened in Chrome 142.0.7444.176
Other information
No response