dotnet run documentation states that it will default the configuration to Debug but requires configuration flag to be passed to debug Blazor, e.g., dotnet run -c Debug. I have not tested other dotnet projects, so it could be applicable to all of dotnet core.
Steps to reproduce the behavior:
dotnet new blazordotnet runhttp://localhost:5000SHIFT+ALT+D with focus on the applicationInspect > Console tab.Cannot start debugging, because the application was not compiled with debugging enabled"%programfiles(x86)%\Google\Chrome\Application\chrome.exe" 鈥搑emote-debugging-port=9222 http://localhost:5000/ command).Error:
Tabs:
Reported here based on suggestion from https://github.com/aspnet/AspNetCore.Docs/issues/13548
Track with https://github.com/aspnet/AspNetCore.Docs/pull/13594 for documentation updates based on decision from engineering
Commenting here so that I get an explicit ping from GH to revert the doc update when this is resolved.
Thanks for contacting us, @djbreen7.
We are unable to reproduce this behavior with the given set of steps. Please provide any additional information which may help reproduce this.
I was just able to repro it here again. For an unmodified template-based client-side Blazor app (dotnet new blazor) and running it in Chrome ...
dotnet run – Debugging doesn't fire up with Shift+Alt+D. The error is produced and the Chrome 'how to enable debugging' tab doesn't open.
dotnet run --configuration Debug (or -c Debug) – Works. No error message. The 'how to debug' tab opens in Chrome.
Chrome latest: Version 76.0.3809.87 (Official Build) (64-bit)
... and Pre7 SDK
Sure thing, @mkArtakMSFT !
Add chrome.exe to path:

Download and install the dotnet-sdk-3.0.100-preview7-windows-x64-installer link
dotnet --version
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview7.19365.7dotnet new blazor --name=MyBlazorAppcd into MyBlazorAppcd MyBlazorAppdotnet run Open Chrome with remote debugging enabled
chrome.exe --remote-debugging-port=9222 http://localhost:5000/

Open Dev Tools and select Console
SHIFT+ALT+D to start debuggingAt this point, the error should be visible in the console:

Note that dotnet run implicitly builds in Debug mode. This can be confirmed by the presence of a /bin/Debug folder after running dotnet run

Note that it works fine if the -c Debug | --configuration Debug is explicitly

Thanks @djbreen7.
We'll tackle this after we're done with the upcoming 3.0 release.
Need instructions for Edge. Using:
"%programfiles(x86)%\Microsoft\Edge Beta\Application\msedge.exe" --remote-debugging-port=9222 http://localhost:2847/
instead of
"%programfiles(x86)%\Google\Chrome\Applicationchrome.exe" --remote-debugging-port=9222 http://localhost:2847/
doesn't. Edge still shows
"Could not get a list of browser tabs from http://localhost:9222/json. Ensure Chrome is running with debugging enabled."
Edge Version 78.0.276.11 (Official build) beta (64-bit)
I have also reproduced this, it seems like the Debug configuration is not being applied as the environment is still Production.
Is there any updates here?
FYI @eByte23 in case you don't get a quick answer. Many/most are OOF for the holidays 鉀勶笍. It might take a few weeks to get a response.
This should be fixed in the 3.2-preview1 release.