-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Blazor VSC with C# Dev Kit coverage and review/update existing guidance #30170
Comments
Hello @wgrs ... I'm not sure if you're only referring to Linux/VS Code or not. Can you clarify? Reports of 'this doesn't work' usually aren't specific enough for us to take action on ...
We usually need a more complete report in order to proceed. However, we can schedule this issue for a complete review of the Linux with VSC coverage, including the Linux guidance in the Tooling article. That sounds like a good idea anyway at this point because a few years have passed since we've reviewed the content. Every few years, we try to overhaul and update every document, and I think it is time for this article. We're slammed at the moment with .NET 8 work, but we'll try to get to this issue as soon as we can. I suspect it will be reached in 24Q1. That's the soonest that I'd be free to work on a general overhaul, unless we can determine a more specific problem that I can address right now. Please provide any additional information that you can. |
Thanks for the speedy response. I have been trying to get debugging working in vscode on a Blazor wasm project. I have followed all the instructions on the https://learn.microsoft.com/en-us/aspnet/core/blazor/debug?view=aspnetcore-7.0&tabs=visual-studio page. The breakpoints are not being loaded.(No symbols have been loaded for this document) Of course, the C# Dev Kit is throwing loads of errors but that seems to be par for the course. Its never run without errors since its launch. I am not sure if that is affecting the debugging. .Net 7 |
Thanks for the extra information. Safia on the product unit used to handle the WASM debugging experience, but she might not be handling it any longer. I emailed to ask if she's still working this set of features or if she knew who was. We might end up informing Artak, who will assign a product unit engineer to help ... he might even move this entire issue over to the product unit's repository for work and tracking. Sometimes, the problem isn't in the documentation ... it's a bonafide bug 😈 that's cropped up that must be addressed. Stand-by while we find out how to triage this. I think we'll have some action by the EOD. |
I spoke with Safia ... Indeed! I just barely remembered that she doesn't work on the Blazor WASM debug (or anything for Blazor really) at this point. Let me ping Artak to see how we'll triage this. I'll note here one interesting remark that she made ...
... which means that you might be hitting some real tooling/framework problems, perhaps outside of documentation or perhaps that will also need documentation updates. Stand-by ......... I'll email Artak now. |
Great. Appreciate the speedy attention you are giving the issue. |
No response yet. They're buried in work for .NET 8 at the moment 😅. This is crunch time for the release, which is due out in November, and there's still a lot of work to do AFAICT from my vantage point. If we don't hear back by tomorrow (Wednesday), we'll close this issue in favor of a product unit issue on their repo. I'll ping u back here tomorrow with what to do to set that issue up. |
Thanks for the update |
They're buried in work. Open a support request on their repo for assistance ... https://github.com/dotnet/aspnetcore/issues Notes for the issue ...
I'll close this now and keep an eye 👁️ on your PU issue. |
BTW ... I noticed some issues pertaining to Blazor and C# Dev Kit ... https://github.com/microsoft/vscode-dotnettools/issues?q=is%3Aissue+blazor+is%3Aopen ... but not necessarily breakpoints not being hit. I wonder if that would be a better spot to open than the PU's repo over here? If you open it for the PU tho, that's fine ... they'll move the issue over there if they think it's a C# Dev Kit-related problem. |
To be fair - there is so much wrong with C# Dev Kit / vscode , it is hard to know which is the cause - does the C# Dev Kit debugging settings override the built in vscode debugger? Does the C# Dev Kit replace the debugging in vscode? I have no idea and there is zero documentation. Opening Dev Kit settings is also no help. This is beyond frustrating. I don't understand how something as completely non functioning as the dev kit can even be rolled out. Add in the inconsistencies of working in Blazor and development is nearly impossible. To sum up. In Blazor, Hot Reload is broken, debugging is broken, the compiler is constantly misreporting issues. Refactoring doesn't work. On Linux , most shortcuts don't work. I struggle to understand how anyone is actually using vscode to develop blazor. And when 8 is launched, if its like the previous releases, the core stuff will still be broken because all the effort is being put into developing new features without fixing the old features. Hot Reload has never worked reliably for Blazor since its launch more than 2 years ago. |
I ping @danroth27 and @mkArtakMSFT so that they can see your feedback. I'm going to re-title and use this issue to track any work that they would like done for VSC + C# Dev Kit. I know it's a paid product for professional/commercial use, which might limit the extent that documentation suggests that developers use it over the current guidance that doesn't pitch its use. As for what it uses and how it works, I don't know if the C# Dev Kit uses the Blazor WASM Debugging Extension or not. I haven't researched C# Dev Kit debugging for Blazor (yet ... I plan to), and the entire subject of what to cover here on the C# Dev Kit is only coming up per our discussion about it. We'll find out the plan for coverage as soon as I hear back from Dan and Artak on it. My guess is that the C# Dev Kit repo issues are the best place to open an issue for that team to take a look at what you're seeing if it looks like the tooling is to blame, which seems likely to me ... https://github.com/microsoft/vscode-dotnettools/issues Describe your environment and list the versions of everything. Paste in errors/warnings/screenshots that might be helpful to them. I still think cross-linking this issue makes sense so that I can follow along and see what they find out. You can paste this into the opening comment of your issue ...
I'm buried in work right now for .NET 8, so I won't reach this for several weeks unless there's something fast that I can do to improve the article now. I'll be 👂 on your product unit issue. NOTE TO SELF: In addition to anything for the WASM Debugging article, we might end up with at least some added content (perhaps only a cross-link) on using the C# Dev Kit in the Tooling article, too. |
Thank you. I am attempting to follow the Debugging Wasm document again. There are a range of configuration errors and warnings being thrown that aren't referenced in the document. So not bugs per se but it's preventing progress none the less. |
... and a complete review of the existing guidance is still in order because it has been a few years since it went up. Periodic overhauls almost always lead to much better guidance. |
Let's leave this open to track work on it. I need to perform an overhaul of the content, and I should work it with the C# Dev Kit, too, to see if I hit the same 😈 that you hit. I also ended up raising the priority. We have so many framework changes this time around that I'd like to get this done by 8.0 RTM. |
Additional update from the product unit. They said (offline) ...
I'll confirm it myself when I reach this article for updates, hopefully before 8.0 reaches RTM in November. |
NOTE TO SELF ...... #30363 (comment) UPDATE: Done! 👍 |
Why is it that so many asp.net instruction documents are written so badly? In most cases they are no help at all. This holds true even more so when following Linux instructions on .net. Debugging on vscode on Linux is the same. You are almost guaranteed to fail using the Microsoft documentation and have to try and find help on other forums.
EDIT by guardrex ... NOTE TO SELF .... #30363 (comment)
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: