远程调试Azure网站:断点未命中 [英] Remote debugging Azure website: Breakpoints not hit
问题描述
谢谢...
-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屋!