Training
Module
Remotely debug ASP.NET Core apps hosted on Azure App Service using Visual Studio - Training
Hands-on training to deploy and remotely debug your ASP.NET Core apps on Azure App Service directly using Visual Studio 2022.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This warning dialog box appears when you attach to a process that contains partially trusted code or is owned by an untrusted user immediately before the attach occurs. An untrusted process that contains malicious code has the potential to damage the computer doing the debugging. If you have reason to distrust the process, then you should click Cancel to prevent debugging.
In IIS scenarios, you may see this warning if you use a custom application pool, which is untrusted.
To suppress this warning when debugging a legitimate scenario:
Close Visual Studio.
Set the value of the DisableAttachSecurityWarning
registry key to 1.
In older versions of Visual Studio, find or create the key under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\<version>\Debugger
, and set it to 1.
Starting in Visual Studio 2017, you need to first load the private registry hive with HKEY_USERS
selected. For more information, see How to examine Visual Studio 2017 registry. Make sure you unload the private registry hive before starting Visual Studio.
In Visual Studio 2022, create the key under HKEY_USERS\IsolatedHiveName\Software\Microsoft\VisualStudio\17.0_configID\Debugger
.
In Visual Studio 2019, create the key under HKEY_USERS\IsolatedHiveName\Software\Microsoft\VisualStudio\16.0_configID\Debugger
.
In Visual Studio 2017, create the key under HKEY_USERS\IsolatedHiveName\Software\Microsoft\VisualStudio\15.0_configID\Debugger
.
Unload the private registry hive by selecting HKEY_USERS
and then selecting File > Unload Hive.
Restart Visual Studio.
After you finish debugging the scenario, reset the value to 0, and restart Visual Studio.
"Trusted users" include yourself, plus a set of standard users who are typically defined on computers that have the .NET Framework installed, such as aspnet
, localsystem
, networkservice
, and localservice
.
Training
Module
Remotely debug ASP.NET Core apps hosted on Azure App Service using Visual Studio - Training
Hands-on training to deploy and remotely debug your ASP.NET Core apps on Azure App Service directly using Visual Studio 2022.
Documentation
Debug user code with Just My Code - Visual Studio (Windows)
Just My Code is a debugging feature that automatically steps over calls to non-user code. Learn how to enable, disable, and use this feature.
Recommended debugger property settings for C#, VB - Visual Studio (Windows)
See the build and compile property settings that should be the same for all managed debugging. Other settings can vary depending on project type.
Attach to running processes with the debugger - Visual Studio (Windows)
Attach the Visual Studio debugger to a running process on a local or remote computer to debug running apps, apps not created in Visual Studio, and other scenarios.