远程调试Azure网站:断点未命中 [英] Remote debugging Azure website: Breakpoints not hit

查看:259
本文介绍了远程调试Azure网站:断点未命中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET网站,我部署到Azure。我使用的是VS2013,.NET 4.5.1和Azure SDK 2.2。我在管理门户中打开VS2013的远程调试。我可以成功右键单击服务器中Azure节点下的网站,然后选择附加调试器。它表示正在下载调试设置,然后Web浏览器出现。但是断点从来不会受到打击,尽管它们处于我知道的代码中。一个线索:断点有一个开放的圆圈,并指出:断点当前不会受到打击,没有为此文档加载任何符号。但当本地测试时断点工作正常。有没有人对如何解决这个问题有任何想法?



谢谢...



-Ben



更新:我从.NET 4.5.1下降到4.5;问题仍然存在。

解决方案

我也在努力解决这个问题(VS2015 Enterprise),但发现了一个非常一贯的解决方案。


  • 确保您没有附加到网络应用程序

  • 打开网络应用程序的Azure门户

  • 停止网络应用程序

  • 重新启动网络应用程序

  • 给它一下热身,然后去返回VS并重新附加



几乎每次都适用于我。请注意,在Visual Studio中停止并启动Web应用程序不能一直工作。


I've got an ASP.NET website that I deployed to Azure. I'm using VS2013, .NET 4.5.1 and Azure SDK 2.2. I turned on remote debugging for VS2013 in the management portal. I can successfully right click the website under the "Azure" node in servers, and select "Attach debugger." It says that it is downloading debugging settings, and then the web browser comes up. But breakpoints are never hit despite them being in code that I know is executed. One clue: the breakpoint has an open circle and states: "The breakpoint will not currently be hit. No symbols have been loaded for this document." But the breakpoint works fine when testing locally. Does anyone have any thoughts on how to address this?

Thanks...

-Ben

Update: I dropped from .NET 4.5.1 to 4.5; problem persists.

解决方案

I also struggled with this (VS2015 Enterprise) but found a solution that works pretty consistently.

  • Make sure you aren't attached to the web app
  • Open up the Azure portal for the web app
  • Stop the web app
  • Restart the web app
  • Give it a second to warm up, then go back to VS and re-attach

This works for me almost every time. Note that stopping and starting the web app from w/in Visual Studio does not work consistently.

这篇关于远程调试Azure网站:断点未命中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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