question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debug Blazor using Edge on Ubuntu

See original GitHub issue

Describe the bug Launch Edge on ubuntu and redirect to the page set in url parameter - using nightly build of vscode-js-debug.

To Reproduce

  1. Create a new folder called MyBlazorApp somewhere
  2. Navigate inside the folder and Open in Terminal
  3. Type dotnet new blazorwasm
  4. Type code .; exit
  5. Allow VS Code to auto-generate launch.json and tasks.json
  6. Inside launch.json, add "browser": "edge" to the first configuration in the list and set the url to the url defined in your launchSettings.json
  7. Go to the file Counter.razor inside of the Pages folder and put a breakpoint where it says currentCount++;
  8. Press F5 to debug
  9. 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:closed
  • Created 2 years ago
  • Comments:25 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
lewingcommented, Feb 4, 2022
1reaction
connor4312commented, Jan 31, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found