Debug Blazor using Edge on Ubuntu
See original GitHub issueDescribe the bug Launch Edge on ubuntu and redirect to the page set in url parameter - using nightly build of vscode-js-debug.
To Reproduce
- Create a new folder called
MyBlazorApp
somewhere - Navigate inside the folder and Open in Terminal
- Type
dotnet new blazorwasm
- Type
code .; exit
- Allow VS Code to auto-generate
launch.json
andtasks.json
- Inside
launch.json
, add"browser": "edge"
to the first configuration in the list and set the url to the url defined in yourlaunchSettings.json
- Go to the file
Counter.razor
inside of thePages
folder and put a breakpoint where it sayscurrentCount++;
- Press
F5
to debug - It launches the browser but doesn’t redirect to the url set in
launch.json
Related to https://github.com/dotnet/aspnetcore/issues/38413
Issue Analytics
- State:
- Created 2 years ago
- Comments:25 (21 by maintainers)
Top Results From Across the Web
Debug ASP.NET Core Blazor WebAssembly - Microsoft Learn
Blazor WebAssembly apps can be debugged using the browser developer tools in Chromium-based browsers (Edge/Chrome). You can also debug your ...
Read more >Cannot debug Blazor wasm - Stack Overflow
I managed to get it working with Microsoft's Edge browser. Although I'm using VSCode on linux, it should be similar for Visual Studio...
Read more >Blazor Debugging Improvements in Rider 2021.2
The EAP versions of Rider 2021.2 have been released with a major improvement for Blazor developers: debugging WebAssembly (WASM) apps!
Read more >The development / debug experience is really bad on Linux
I'm using the .net 7 preview and new vs preview on windows and hot reload seems way more consistent for blazor WASM. The...
Read more >How to debug Linux .net core app in Windows with ... - YouTube
In this video we take a look at the new feature for debugging Linux .net core applications in Windows using Visual Studio 16.9...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ChristianWeyer the patch is here https://github.com/dotnet/aspnetcore/pull/39995
If I add the
url
to the config, then I get an ECONNREFUSED on both Edge and Chrome. If I omit the URL, I get the error I mentioned before (The URL's protocol must be one of "ws:", "wss:", or "ws+unix:"
) on both Edge and Chrome. In all cases there’s an about:blank page since the connection to the browser is never established.