microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.72k stars 29.09k forks source link

Failed to debug BlazorWebAssembly with WSL2 #179530

Closed viethung9at1 closed 1 year ago

viethung9at1 commented 1 year ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

  1. Install .NET Install Tool for Extension Authors, Microsoft.AspNetCore.Razor.VSCode.BlazorWasmDebuggingExtension
  2. Debug Blazor WebAssembly project
  3. Warning: command 'blazorwasm-companion.launchDebugProxy' not found
  4. Error: Cannot activate the 'Microsoft.AspNetCore.Razor.VSCode.BlazorWasmDebuggingExtension' extension because it depends on the '.NET Install Tool for Extension Authors' extension, which is not loaded. Would you like to reload the window to load the extension? (when I have install and enable .NET Install Tool for Extension Authors.
  5. No breakpoint hit and broswer is not automatically run image
roblourens commented 1 year ago

Does it work after reloading the window, like the message suggests?

viethung9at1 commented 1 year ago

It don't work, and the message show again

roblourens commented 1 year ago

I'm not sure what "loaded" means in this message @sandy081, installed or activated?

Can you check the devtools console for errors? Help > Toggle Developer Tools

sandy081 commented 1 year ago

It looks like the depending extension is enabled but not loaded into the same extension host. Can you please uninstall the Razor extension and retry?

vscodenpa commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!