调试器未命中 .NET 代码中的断点
我有一个使用 VS 2005 运行的 C# 代码。
我在代码中设置了几个断点。当我在调试模式下运行代码时,没有到达任何断点。
不过代码运行成功。 我尝试在基本的 Page_load
处放置断点。
我已经尝试清除 Windows 文件夹中的临时 ASP.NET 文件、清理解决方案、从代码存储库再次获取所有文件。但还是一样。
I have a C# code which I am running using VS 2005.
I have put up several breakpoints in the code. When I run the code in debug mode, none of my breakpoints are reached.
However the code runs successfully.
I tried putting breakpoints at basic Page_load
.
I have already tried clearing my Temporary ASP.NET files in Windows folder, cleaning the solution, getting all the files again from the code repository. But it is still the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现这和VS2005和IE8有关。它们在调试时都不能很好地工作。我从以下链接获得此信息 -
VS 2005 - IE8 问题
最终,我做了一些更改,现在可以通过代码进行调试。以下是我采取的步骤 -
之后执行在所有断点处停止。
我知道这是一个费力的过程,但至少在我不得不处理设置警报框之后它正在发挥作用。
I found out that it has something to do with VS2005 and IE8. Both of them doesn't work well while debugging. I got this information from following link -
VS 2005 - IE8 issue
Eventually, I made some changes and now can debug through the code. Following are the steps I took -
After which the execution stops at all the breakpoint.
I know this is laborious procedure, but at least it is working after me having to deal with putting up alert boxes.