Search code examples
azurevisual-studio-2015azure-web-app-serviceremote-debuggingvisual-studio-debugging

Unable to start debugging in VS2015 for Azure web app


I'm using VS2015 Update 1 to try and debug my site which I've uploaded in Debug mode to an Azure web app (NOT a vm). I am working from my work domain.

I've been following instructions similar to found here https://samlman.wordpress.com/2015/02/27/another-cool-way-to-remotely-debug-azure-web-sites/

I have:

  • Published my website in Debug configuration
  • Enabled Remote Debugging from the management console
  • Made sure my VS edition is set to 2015
  • Enabled Websockets (from trying to connect via websockets)
  • Checked that the firewall allows VS remote debugger, remote debugger monitor and remote debugger discovery through.
  • Checked the website is up and running (set it to always on just in case)

I have tried right clicking my app service in Server Explorer and "Attach Debugger".

I then tried to connect using Debug > Attach to process and using the qualifier mysite.azurewebsites.net as instructed on various blogs. Even tried transport as Websocket, Remote as well as Default.

All methods get me the following: Error message

I then used Fiddler to see if I could find the answer from web traffic but no joy with that.

Would appreciate any suggestions to get me around this problem!

Edit Under scm -

SCM shows process


Solution

  • There was another firewall I wasn't aware of on the domain that was blocking the debugger.

    Edit:

    Ports requested outbound:

    • UDP 3702
    • TCP 4020
    • TCP 4021

    Port assignments are given here on MSDN page