为什么Visual Studio中有时不去我的断点? [英] Why does Visual Studio sometimes not go to my breakpoints?

查看:278
本文介绍了为什么Visual Studio中有时不去我的断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Visual Studio 2005和2008年,我已经注意到,有时当我把破发点在我的code,它并没有想去破发点。所以,我重新启动我的电脑,然后重新工作。它喜欢的东西获取的卡?这是否只发生在我身上?
我怎样才能prevent这个!这是推动我坚果!

I have been using Visual Studio 2005 and 2008 and i have noticed that sometimes when i place break point in my code that it does not want to go to the break point. So i restart my PC and then it works again. Its like something get's stuck? Does this only happen to me??? How can i prevent this! It is driving me nuts!!

在此先感谢!

推荐答案

通常这是因为你正在寻找的code,因为你放置断点没有被编译,所以你测试code /单元测试,运行的是对一个过时的DLL。

Often this is because the code you are looking hasn't been compiled since you placed the breakpoint, so you test code / unit test, is running against an outdated DLL.

这可能是发生了什么事给你。

This might be what's happening to you.

检查您构建管理,并确保所有的项目进行检查。

Check out your build manager, and make sure all the projects are checked.

编辑:
转到建设 - >配置管理器,并确保[建设]复选框全部选中,这将确保当您生成解决方案(CTRL + SHIFT + B)。

Go to Build->Configuration Manager and make sure the [Build] checkboxes are all checked, that will ensure that every project is compiled when you build the solution (Ctrl+shift+b).

这篇关于为什么Visual Studio中有时不去我的断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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