Cannot remote debug Azure AppService "unable to find a process called w3wp"

  • Make sure Remote Debugging is enabled in Azure Portal. Go to Azure Portal =>Your App Service =>Configuration => Select General settings.

enter image description here

  • Change the Configuration option to Debug

enter image description here

  • I got the same issue when I Attach debugger from Hosting menu.
  • Instead of "Attach Debugger", use Attach process from the VS debug menu.
  • Place breakpoint in any of your form. As I am using the basic application ,I have placed in Index.cshtml.cs.
  • Copy the Credentials from the Azure Portal.

enter image description here

  • VS 2019=> Go to Debug tab => Attach process => In Connection Target paste your site url without htttp like(myappservice.azurewebsites.net)
    =>Refresh button => add your app service credentials username and password=> A list of process will be shown to you just click on the w3wp.exe process => Select Show Processes from all users.

enter image description here

enter image description here