-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm][7.0] Blazor Wasm debugger not working anymore #87407
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsIs there an existing issue for this?
Describe the bugWhen I try to debug my Blazor Wasm application (cs files), I got stucked with debugger. Debugger not hit and I got some wierd error on visual studio and in console. I didn't find any resolution during my research last 5 days. It worked before but now there is no chance to make it work again. I didn't change anything in my code base but windows updates, visual studio update. I did re-installed all SDK-s, re-installed visual studio, even check .NET core 8 preview, but without success. It is important to mention that i'm using authentication, (OpenIdDict). Expected BehaviorExpecting to have working debbuger breakpoints inside razor.cs files. Steps To ReproduceExceptions (if any)
.NET Version7.0.302 Anything else?Dotnet Info:
Project.cs
App.razor
Example of some page which requires Authenticated user
Index.html Scripts:
Program.cs
BlazorWasmAPIsAuthorizationMessageHandler.cs
|
Same issue with .NET (v7.0.304) and 7.0.7 packages.
Is there and advice or bypass to make debugger working again, our projects are totally blocked. thank you guys. |
Thank you for the report, @DinoHad. I was trying to reproduce but with no effect so far. Generally this kind of error (
Did you try debugging in Browser (ctrl+alt+D on the browser's window) or only in Visual Studio? Does it finish with the same error for both?
Does it mean that if you remove the authentication from the project, the behavior changes?
|
Hi @ilonatommy , thank you for your respond!
|
I kind of reproduced on 7.0.5 when the app has another, authorization problem but am still looking for ways how to fail debugging a correctly set up application. In the meantime, please make sure your authorization setup is correct.
Will keep you posted on the progress. |
it seems comment of EricCornelson on this issue: #86754 (comment) resolved this one also, debugger/break points is now hitted, but there is still error persistent in console while App is running in Debug mode and debugger hit break point.
|
@DinoHad just to understand it better. If you use the @EricCornelson workaround the breakpoints are working fine for you now, right? |
@EricCornelson dist.zip file worked for me. I am not getting any messages in the console though. I did notice this in the debug console that was there before I did the dist.zip replacement, not sure if it is related:
|
@LongJohnBlackbeard Yes, exactly. |
The dist.zip worked for me as well, no error messages. |
Github, where is the button "I have the same bug" ? I have the same bug on all 17.6.* Pro, on 17.6.4 it works only after VS reinstalling and only the first time. If you reopen VS it won't work. MS does not have good (complex) unit tests. |
Same problem in my VS but with Blazor WASM 6.0.5 and 6.0.19. The problem returns like a boomerang every few months and usually only disappears with the next Visual Studio update. |
7.0.11 and 6.0.21 shoud have have a fix for this. |
Is there an existing issue for this?
Describe the bug
When I try to debug my Blazor Wasm application (cs files), I got stucked with debugger. Debugger not hit and I got some wierd error on visual studio and in console. I didn't find any resolution during my research last 5 days.
I need help ASAP because we really cannot accept situations like this, We are big fan of Blazor and .NET stack but unfortunatelly if we do not solve this issue we cannot continue our projects in this technology, it is not acceptable to have issues like this.
It worked before but now there is no chance to make it work again. I didn't change anything in my code base but windows updates, visual studio update.
I did re-installed all SDK-s, re-installed visual studio, even check .NET core 8 preview, but without success.
It is important to mention that i'm using authentication, (OpenIdDict).
.NET 7, VS 17.6.2
Expected Behavior
Expecting to have working debbuger breakpoints inside razor.cs files.
Steps To Reproduce
Exceptions (if any)
.NET Version
7.0.302
Anything else?
Dotnet Info:
Project.cs
App.razor
Example of some page which requires Authenticated user
Index.html Scripts:
Program.cs
BlazorWasmAPIsAuthorizationMessageHandler.cs
The text was updated successfully, but these errors were encountered: