1

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.

GH DevOps
  • 305
  • 1
  • 11
  • Did you get a chance to look into this SO [link.](https://stackoverflow.com/questions/76172891/asp-net-connect-to-azure-process-and-debug/76179396#76179396) – Rajesh Mopati May 11 '23 at 05:26
  • Yes, it is possible to attach a remote debugger in Visual Studio with a scaled-out app. You need to attach the debugger to the correct instance of your app service. – Rajesh Mopati May 11 '23 at 05:49
  • 1
    @RajeshM no not yet. I have Azure set up and simply attached the debugger via the panel. I'll try attaching the process today. – GH DevOps May 11 '23 at 11:23

1 Answers1

1
  • 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

Rajesh Mopati
  • 1,329
  • 1
  • 2
  • 7