Search code examples
c#azureremote-debugging

Azure Remote Debugging in VS With Scaled Out Application


I doubt it is possible, but can I attach a remote debugger in Visual Studio with a scaled out app? I have 2 instances of my app services running in Azure. I'm able to attach the debugger with symbols but I never hit my breakpoints. Has anyone tried this? I've done some searching but haven't found anything helpful.


Solution

    • After publishing the Web app to azure, you need to configure the Remote debugging to On and Visual Studio version as mentioned below.

    enter image description here

    • Download profile and use the application name.

    enter image description here

    applicationName.azurewebsites.net:4024

    As below

    enter image description here

    Then you need to enter the credentials to connect the Azure, using the credentials from the downloaded profile.

    enter image description here

    • And choose the worker process (W3wp.exe) for debugging.
    • Hit the URL of the published azure web App. then it attaches the debugger with symbols and then the debugger is hit in local Visual studio.

    enter image description here