Unable to attach remote debugger to Azure app service slot (VS 2019)

Matt Drouillard 186 Reputation points
2021-08-25T22:59:36.95+00:00

I am unable to connect to the remote debugger to an app service slot in Azure, I am running VS 2019 all up to date on 16.11.2:

Unable to find a process called w3wp with arguments "<<ProjectName>>. The process may still be starting, please try again.

126430-2021-08-25-18-54-50-window.png

Restarted the app service multiple times, restart VS, computer; nothing is working.

Should also add the settings are enabled in Azure:
126379-2021-08-25-19-05-56-window.png

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,607 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
939 questions
{count} votes

9 answers

Sort by: Most helpful
  1. Patrik Hellgren 1 Reputation point
    2021-09-03T18:21:30.47+00:00

    I am also seeing the same thing but with VS version 16.8.4 so it is not just the latest version. The workaround seems to work for me.

    0 comments No comments

  2. Mouse 1 Reputation point
    2021-09-07T14:16:19.54+00:00

    Same problem exists for 16.11.2

    0 comments No comments

  3. Gavrilenko Andrey 1 Reputation point
    2021-09-07T19:45:15.617+00:00

    Clean Windows 10 + VS2019 Version 16.11.2 same issue. Workaround doesn't work

    0 comments No comments

  4. Prashanth Reddy 1 Reputation point
    2021-09-24T11:47:25.5+00:00

    Hi Everyone,

    Today I have solved this issue via In VS -> Debug -> Attach Process -> Given App Service URL with {Port} - > Login Pop up comes ->enter the app credentials and then ots working fine..

    {PORT} : This number depends on Visual Studio version , in my case VS2019 ->4024
    https://learn.microsoft.com/en-us/visualstudio/debugger/remote-debugger-port-assignments?view=vs-2019

    If login Pop Up not comes up, please add below registry value for Visual studio registry
    ShowCredentialsDialogOnAttachToProcessFailure dword 1

    https://developercommunity.visualstudio.com/t/Inconsistent-failure-HRESULT-return-from/1490666

    UserName & Password must be taken from Azure App Service Publish Profile.