dotnet --info output.NET Core SDK (global.json を反映):
Version: 3.1.300
Commit: b2475c1295
ランタイム環境:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.300\
Host (useful for support):
Version: 3.1.4
Commit: 0c2e69caa6
.NET Core SDKs installed:
2.1.801 [C:\Program Files\dotnet\sdk]
2.1.802 [C:\Program Files\dotnet\sdk]
2.2.401 [C:\Program Files\dotnet\sdk]
2.2.402 [C:\Program Files\dotnet\sdk]
3.1.201 [C:\Program Files\dotnet\sdk]
3.1.202 [C:\Program Files\dotnet\sdk]
3.1.300-preview-015135 [C:\Program Files\dotnet\sdk]
3.1.300 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.18 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.18 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.18 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Thanks for adding your comments, everyone. It would also be helpful if you included any logs and outputs from your debugging session to help us track this down.
We’re currently investigating this issue.
@HKBoy Wow thanks!
NO_PROXY: localhostworked for me 😄 My machine is in a corporate proxy environment which requires authentication.@digeff @captainsafia Is this an expected behavior? If so, documented somewhere?
Thank you @clawton , that is very useful to know! 😃
@captainsafia @mkArtakMSFT @digeff Realize this is closed but here is a little more information:
After upgrading all the my referenced nuget packages (specifically the Microsoft.AspNetCore.*) AND updating the code in the Client Blazor’s Program.Main() routine for the line:
builder.Services.AddBaseAddressHttpClient();changed to:
builder.Services.AddTransient(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });I can now launch the debugger and it successfully attaches again.
Same problem here: cannot being to debug Blazor Web Asssembly app using:
Microsoft Visual Studio Community 2019 Preview Version 16.6.0 Preview 2.1
Pretty sure it was working fine a couple of weeks ago.
Here is the log, and content from the output window:
vscode-chrome-debug.txt
Output Window.txt
@SIkebe Screencaps of the bug you are running into and any content that shows up in the browser console would be helpful.
We discovered a bug in some of the debugging codepaths that prevented logs from being generated. We’ve resolved that bug and are working on getting the fix out in a public feed so that you and others will be able to provide more detailed logs then.
Fresh install of .Net Core 3.1.300, VSCode 1.45.1. Same issue.
Adding my voice, same issue here. Started with the upgrade to vs 16.6.0
It would be great if the dialog message is a bit clearer.
Not sure if related, but there’s another thread with similar issue. https://github.com/dotnet/aspnetcore/issues/21615
Author solved by adding environment variable. Doesn’t work for me though.
The same issue, debugging is not working anymore…
I encountered the same issue just today and it’s a Blazor app debugging as well.
Error: unable to attach to the browser
VS version: Version 16.6.0 Preview 6.0 Chrome version: Version 83.0.4103.61 (Official Build) (64-bit) Microsoft.AspNetCore.Components.WebAssembly.*: 3.2.0-preview3.20168.3
vs-code-debug.txt in attachment vscode-chrome-debug.txt
Output window in attachment Output.txt
Tried what @digeff suggested, it works and breakpoint is hit.
@digeff Thanks! I tried JavaScript debugging in a default Razor Pages app, and verified it just worked.
@SIkebe : To help us isolate and diagnose the issue, could you please:
Thanks!
Thanks for contacting us. @digeff this will need to be investigated. Do you want to file a separate issue to track this, or use this one? Let me know.
@captainsafia Here’s the output. Nothing special, I think…
And this is the
C:\Users\<username>\AppData\Local\Temp\vscode-chrome-debug.txtfile.