0

I'm currently using visual studio 2017 and trying to attach the debugger to my web app. I've deployed my app and i've attached the debugger through VS. I've also ensure on the azure portal that remote debugger is turned on. I've also went to https://xxxxxxxx.scm.azurewebsites.net/ and checked the processes and w3wp is available. From Unable to start debugging in VS2015 for Azure web app and Remote Debugging - Web App Azure it indicated to me it could be a port being blocked. so i went ahead and set my firewall outbound to allow the connections from UDP 3702 TCP 4020 TCP 4021 and ports 4022 and the problem still persist. I'm unable to connect to my connection target.

I've tried xxxxxxxxx.azurewebsites.net:4022 and xxxxxxxxx.azurewebsites.net

enter image description here

I'm all out of ideas and suggestions from the web. If anyone else has tips, that'll be great.

Fei Han
  • 26,415
  • 1
  • 30
  • 41
Master
  • 2,038
  • 2
  • 27
  • 77

1 Answers1

5

unable to connect to my connection target.

Please refer to this article to configure the firewall to enable remote debugging for VS 2017.

enter image description here

Remote debugging works for me using VS 2017 with following steps:

Turn on Remote debugging and choose VS 2017

enter image description here

Find and attach to process

enter image description here

Please try to enter {your_web_app_name}.azurewebsites.net:4022 and click Refresh button to check if you can see available processes.

Besides, you can right-click your web app, and then click Attach Debugger to remote debug the web app in Server Explorer.

enter image description here

Updates:

Get publish profile on portal

enter image description here

Fei Han
  • 26,415
  • 1
  • 30
  • 41
  • Hi, i've done every step you suggested but i'm stuck at the refresh part. It ask for my credentials, i've entered my azure credentials and it says authentication failed. Is there another set of credentials to use maybe that's configured through azure portal? – Master Sep 28 '17 at 15:29
  • 2
    ``Is there another set of credentials to use maybe that's configured through azure portal?`` Please check my update and get publish profile on Azure portal. – Fei Han Sep 29 '17 at 02:31
  • THANK YOU SO MUCH! this has been driving me insane. – Master Sep 29 '17 at 03:39