Visual Studio 2010调试器对方法进行了分析,并且不会在断点处停止 [英] Visual Studio 2010 debugger steps over methods and doesn't stop at breakpoints

查看:131
本文介绍了Visual Studio 2010调试器对方法进行了分析,并且不会在断点处停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Visual Studio 2010调试器有时有一个非常奇怪的行为...

My Visual Studio 2010 debugger sometimes has a very strange behaviour...

有时它不会在断点停止,但是当它停止时,我想一步到一个方法,调试器只是步过它。此外,这些超级方法中的断点也将被忽略。

Sometimes it doesn't stop at breakpoints, but when it stops, and I want to step into a method, the debugger just steps over it. Also the breakpoints in those over-stepped methods are ignored.

当出现这种奇怪的行为时,它也不会中断异常,只是忽略它们。

When this strange behaviour occurs, it also does not break on exceptions but simply ignores them.

我已经尝试重建我的项目,重置Visual Studio设置和禁用的调试器设置,如仅在我的代码中打破,但没有任何工作。

I've tried to rebuild my project, reset the Visual Studio settings and disabled debugger settings like "Break only in my code", but nothing has worked.

我如何解决这个问题?

推荐答案

我发现问题的解决方案真的很简单:

I've found the solution of the problem and it is really simple:

在我的解决方案的构建配置中,没有检查方法所在的项目的Build复选框。我检查了,现在一切正常。

In my solution's build configuration, the "Build" check-box of the project where the methods are, that get over-stepped, was not checked. I checked it, and now everything works.

这篇关于Visual Studio 2010调试器对方法进行了分析,并且不会在断点处停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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