Your WASM app is getting ready to be used by Rider debugger, please stand by...
I have a Blazor .NET 8.0 web app. When I try to debug it in Rider, it sometimes works. But more often, it just opens a Chrome window with blanks screen with the following text in the middle: “Your WASM app is getting ready to be used by Rider debugger, please stand by…”. It doesn't help to stop debugger or re-run, close the browser etc. However, restarting Rider helps. Any chance to solve it?
Please sign in to leave a comment.
Thank you for contacting Rider Support.
It sounds weird. Unfortunately, I can't reproduce such an issue. In order to take a closer look at the issue, we will need some additional information. Please do the following:
- It would be very helpful if you could make a recording that demonstrates the issue!
- 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;
- Upload the resulting bundle (and recording) to our server (https://uploads.jetbrains.com/) and share the ID.
Thank you in advance and have a great day!
I have the same problem on my system. I've collected the logs and uploaded as Upload id: 2024_06_14_23B3pShbDQwUmQb37aytJm (file: rider-logs-20240614-1038511898539426504398884.zip)
My upload Id: 2024_06_15_VKZPeFhTtW4MVa6skiwZhF
Hello Johan,
Thank you for reporting your issue. We see the problem from the logs. We hope to fix your case. There is a bug report for your case: /RIDER-113774 Can't debug Blazor .Net 8 project. 401 when checking if page is available for debugging.
Hello Bea,
Thank you for the logs shared. Your case is probably already fixed in the EAP version. Would you mind trying this and letting me know if that helps?
If that doesn't help, we would appreciate it if you could share either your project (if possible) nor the .csproj (for all 4 projects in solution or at least BleafSample.Client.csproj) together with corresponding launchsettings.json file.
Note: your uploads are not publicly available. It is only available for JetBrains employees. Also, we can sign an NDA. If sharing a project or those files without signing NDA, the issue persists in EAP and you are interested in troubleshooting the case, please let me know.
Have a nice day!
The Rider EAP does not solve the issue. But I found a workaround: before hitting debug, close all browser tabs with Blazor and kill ".NET Host" background processes in Windows Task Manager. Usually last one is not killable but that's ok.
Hello Bea,
We are glad to know you found a workaround. It seems Rider doesn't kill some process which unexpectedly remains alive and prevents Rider from launching another one.
We would appreciate it if you could take a closer look at this issue and share more information, so that we can take a closer look on our side:
Have a nice day!
After normally finishing a debugging session in Rider (pressing the red square button at the debug toolbar), the following .NET Host processes are present (info from Process Hacker):
All processes are children of
Rider.Backend.exe
. At this point, trying to launch again Rider debugger always fails, as I described before.The workaround that I found is to terminate these processes. I only managed to do it efficiently directly from Task Manager. It may take a few tries to terminate a process because new ones may spawn in place of terminated ones. But eventually they can be terminated, if done from Task Manager (from Process Hacker they respawn forever..). Finally, the last process will always spawn new one if terminated even from Task Manager, but as I mentioned debugging works at this point.
The last proces that survived but did not prevent debugger from launching was:
It has different PID but as I said, this is a (grand) spawn of some original one.
Thank you for your for your analysis! Apologies for taking so long to respond.
Unfortunately, we are now even more confused. These processes should not impact debug launch.
We need to reproduce this issue in order to troubleshoot it. Did you try reproducing this issue with a newly created project? Or does the issue only occurs on your main project?
If you could reproduce the issue on a new project that mirrors your main project structure, that would be very helpful! If it is too much for you, would you mind sharing the BleafSample.Client.csproj file together with corresponding launchsettings.json (feel free to obfuscate its content)?
Note: also, there is an option to sign an NDA so that you can share you project with us.
Have a nice day!
Found the workaround https://youtrack.jetbrains.com/issue/RIDER-113774/Cant-debug-Blazor-.Net-8-project.-401-when-checking-if-page-is-available-for-debugging#focus=Comments-27-10397926.0-0