Rider - Blazor Web App Debug

Is there a way, how to figure out why Rider is unable to connect the debugger agent in the hosted Blazor WASM app? 

I tested it on the new NET8 Blazor Web App template with WASM components and here it works great even with hot-reload. 

But when I ran my other project it did not work at all and showed me the message which you can see below. It is a NET6 Blazor WASM Asp-hosted project migrated to NET8. So I looking for ways to debug the debugger.

0
11 comments

Hello,

Thank you for contacting Rider Support. We are sorry to hear that you have run into such a problem. To take a closer look at the issue, we will need some additional information. Please do the following:

  • Go to Help | Diagnostic tools | Choose Trace Scenarios;
  • Enable the Trace scenario for Debugger;
  • Reproduce the issue;
  • Collect the full log bundle via Help | Collect Logs and Diagnostic Data;
  • Disable Trace scenarios;
  • Attach the resulting log bundle to this ticket or upload it to our server (https://uploads.jetbrains.com/) and share the ID.

Thank you in advance and have a great day!

0

Hello,

here is the log file 

Upload id: 2024_05_17_aUsgj4esXSwPL3VRk5hN9u (file: rider-logs-20240517-0824171159474586944156214.zip)

0

Hello,

Thank you for the log shared!

Would you mind trying the following steps to see if it helps?

  • In the debuggable browser (the browser that opens when you try to launch debug from Rider) clear all type of browser caches. If there are different profiles, clear caches for all profiles;
  • Restart Rider and try again;
  • If that doesn't help, verify if all the NuGet packages are properly migrated, as well as the index.html file;
  • If that doesn't help, find the path mentioned in the top Chromium browser configuration. Then close Rider and delete this folder. Launch Rider and verify if the issue persists.
  • If that doesn't help, invoke File | Invalidate Caches;
  • If none of that helps, would you mind sharing the problematic project with us?

Hope to hear from you soon.

Have a nice day!

0

I have an other project on .net 8, and have the same issue.

It works previously(3 month ago), but was broken about 2 month ago.

I have mac m1 max, and see the same error in both mac rider and win rider(parallels)

Upload id: 2024_06_13_24JH71aEXN2UbanMLRAVms (file: rider-logs-20240613-1624388626866998520968467.zip)

0

Hello Andrey,

Thank you for your report. 

I see the same the same exception in the Debugger logs as the user up in this thread. Would you mind trying the steps I suggested above?:

  • In the debuggable browser (the browser that opens when you try to launch debug from Rider) clear all type of browser caches. If there are different profiles, clear caches for all profiles;
  • Restart Rider and try again;
  • If that doesn't help, verify if all the NuGet packages are properly migrated, as well as the index.html file;
  • If that doesn't help, find the path mentioned in the top Chromium browser configuration. Then close Rider and delete this folder. Launch Rider and verify if the issue persists.

  • If that doesn't help, invoke File | Invalidate Caches;
  • If none of that helps, would you mind sharing the problematic project with us?

Have a nice day!

0

Hello, Dmitry Kazantsev.

I've tried the steps you provided, still doesn't work

I've used the latest nuget package versions

I cannot to send the project because of NDA.

 

Best regards,
Andrei Kotov.

0

Hello, 

I have also tried all the recommendations. Unfortunately, none of them helped.

I can't share the project publicly either.

OK

0
Hello Andrey,

Would you mind comparing index.html files one more time? The one in your migrated project with one in a newly created project. We still suppose the project is migrated in a wrong way. If possible, could you please share these index.html files?

Note: user uploads are only available for JetBrains employees. Also, we don't mind to sign an NDA, so that you can freely share the whole project. It will help us a lot with troubleshooting the case.

Dear On Krejci,

Would you mind telling me if your project is migrated to .Net 8 or you experience the issue with a newly created project?
Also, could you please share Rider logs with Debugger trace scenario enabled?
1) Enable Debugger in Help | Diagnostic Tools | Choose Trace Scenarios;
2) Reproduce the issue;
3) Collect logs via Help | Collect Logs and Diagnostic Data;
4) Disable the trace scenario enabled;
5) Upload the logs bundle to the Upload Service (https://uploads.jetbrains.com/) and let me know the Upload ID;
6) It will be helpful if you could share a recording that demonstrates the issue;

Have a nice day!
0

Hello, 

I have created this topic. My project was migrated from NET6 hosted Blazor Wasm to NET8 Blazor Web App, so index.html was removed and replaced with App.razor in server project. 

I can share the App.razor file if it helps.

Sincerely

OK

 

0

Hello On Krejci,

Is it possible to share these files?

  • Net6Prj→index.html;
  • Net6Prj→MainLayout.razor;
  • MigratedNet8→App.razor;
  • MigratedNet8→MainLayout.razor;

Have a nice day!

0

Please sign in to leave a comment.