无法在VS2015中为Azure Web应用程序启动调试 [英] Unable to start debugging in VS2015 for Azure web app

查看:122
本文介绍了无法在VS2015中为Azure Web应用程序启动调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2015 Update 1尝试调试我的网站,该网站已以调试"模式上载到Azure Web应用程序(不是vm).我正在我的工作领域工作.

我一直在遵循与此处

然后,我尝试使用Debug> Attach进行连接,并按照各种博客的说明使用限定符mysite.azurewebsites.net进行连接.甚至尝试使用Websocket,Remote和Default进行传输.

所有方法都会为我提供以下信息:

然后我使用Fiddler来查看是否可以从网络流量中找到答案,但是对此感到不满意.

将感谢您提出任何解决我这个问题的建议!

修改 在scm下-

解决方案

在域中,我还没有发现另一个阻止调试器的防火墙.

请求的端口 出站:

  • UDP 3702
  • TCP 4020
  • TCP 4021

在MSDN页面上给出了端口分配

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:

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 -

解决方案

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

这篇关于无法在VS2015中为Azure Web应用程序启动调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆