Skip to content

.NET 8 Blazor WASM Debugging and Hot Reload are very buggy. #54079

Open
0 of 1 issue completed
Open
@DuckScapePhilip

Description

@DuckScapePhilip

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I have a Blazor WASM project that I developed in .NET 7 where the debugger worked great and the hot reload worked well enough, but never great, mostly, every once in a while, I would have to close VS 2022 and re-open to get the hot reload to work.

Since I upgraded to .NET 8 the debugger and the hot reload are pretty much broken.

  1. The debugger will work sometimes, maybe 30% of the time but:

    • VS 2022 will freeze for 30 seconds to 1 minute and then respond. It does this every so often.
    • The debugger will get stuck stopping on a break point. I will set a break point, it will stop there, I will hit Continue and it just keeps stopping there, even when I take the break point away.
    • Maybe 25% of the time, I will get these break points in a dynamic java script file that says Source content not found. and it will keep stopping my debugger until I close the dynamic file.
  2. The Hot Reload doesn't even work enough for me to use it.

    • Can make a change and it will still say "No changes were found." - Even something as simple as adding a class to an HTML element.
    • Can make a change and it will apply the change and then crash with:
    19:25 51.68 XXXXXXX (Web assembly): Hot reload session started
    19:27 50.64 Checking for updates...
    19:28 05.40 Applying updates...
    19:28 05.41 XXXXXXX (Web assembly): Sending updates to running application
    19:28 15.48 XXXXXXX (Web assembly): [Error] Applying updates to the application failed. A task was canceled. A task was canceled.
    19:28 15.48 Exception thrown for Apply code updates: 0x80131500 - A task was canceled.
    19:28 15.49 An unexpected error has occurred, any pending updates have been discarded.
    

I have spent a few hours looking on the internet for information and fixes and reports from other people, but nothing has worked so far.

I would really appreciate some help on this, because without these two features, development is incredibly slow and painful.

Expected Behavior

  1. The debugger does not freeze VS every time I startup the app.
  2. The debugger does not repeatedly stop on a breakpoint even after I press continue.
  3. The debugger does not stop on break points when they have been removed.
  4. The debugger does not break on random dynamic JavaScript.
  5. The hot reload functions.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

8.0.102

Anything else?

.NET SDK:
Version: 8.0.102
Commit: 64f1bc458e
Workload version: 8.0.100-manifests.8a11730e

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.102\

.NET workloads installed:
Workload version: 8.0.100-manifests.8a11730e
[maui-windows]
Installation Source: VS 17.8.34601.278
Manifest Version: 8.0.6/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maui\8.0.6\WorkloadManifest.json
Install Type: Msi

[maccatalyst]
Installation Source: VS 17.8.34601.278
Manifest Version: 17.2.8004/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.maccatalyst\17.2.8004\WorkloadManifest.json
Install Type: Msi

[ios]
Installation Source: VS 17.8.34601.278
Manifest Version: 17.2.8004/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.ios\17.2.8004\WorkloadManifest.json
Install Type: Msi

[android]
Installation Source: VS 17.8.34601.278
Manifest Version: 34.0.43/8.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.android\34.0.43\WorkloadManifest.json
Install Type: Msi

Host:
Version: 8.0.2
Architecture: x64
Commit: 1381d5ebd2

.NET SDKs installed:
8.0.102 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Sub-issues

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions