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

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

问题描述

我有一个ASP.NET网站,我部署到Azure上。我使用VS2013,.NET 4.5.1和Azure的SDK 2.2。我在管理门户打开远程调试VS2013。我可以成功地右键点击该网站的服务器上的天青节点下,选择连接调试器。它说,它正在下载调试设置,然后在Web浏览器中出现。但断点从不打,尽管他们在code,我知道执行之中。一个线索:断点有一个开放的圆圈,并指出:断点将​​目前尚未受到打击无符号已加载这个文件。但断点在本地测试时正常工作。有没有人对如何解决这个问题有什么想法?

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?

谢谢...

-Ben

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

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

推荐答案

确认您发布的调试建立一个具体的部署插槽。我有同样的问题,当我连接远程调试到部署了有一个调试版本我升级插槽,它的工作。尝试调试发布版本不起作用,因为必要的调试符号都没有present。像上面@Lars解释说,我不得不重新启动在Azure上的Web应用程序,然后再次尝试对调试调试版本。

Make sure you publish a debug build to a specific deployment slot. I had this same problem and when I attached the remote debugger to my staging slot that had a debug build deployed there, it worked. Trying to debug a release build doesn't work because the requisite debug symbols are not present. Like @Lars explains above, I had to restart the web app on Azure and then try the debug again against the debug build.

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

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