Visual Studio 2015社区调试断点 [英] Visual Studio 2015 Community Debugging Break Points
问题描述
我的断点一直运行良好,直到今天当代码运行时它们不再被击中.有什么办法吗?
Chandrasekharan Kunnath
My break points were working perfectly until today when they stopped being hit when the code runs. Any solution?
Chandrasekharan Kunnath
推荐答案
Hi Kunnath Chandrasekharan,
Hi Kunnath Chandrasekharan,
首先,请清理您的解决方案并重新构建,然后尝试使用F5进行调试,以检查是否会遇到断点.有时,如果更改了调试代码,但您不重建它,则断点将不会被击中.
First, please clean your solution and rebuild it again, then try debug it with F5 to check whether the breakpoint will be hit. Sometimes, if the debug code is change but you don't rebuild it, the breakpoint won't be hit.
然后,请创建一个新项目并添加断点,以检查它们是否可以在新项目中被击中.如果可能被击中,则此问题应与您的项目有关.请清除您的.suo文件并重建它.您也可以复制原件 项目文件移至新项目并重建.
Then please create a new project and add breakpoints to check whether they could be hit in new project or not. If could be hit, this issue should be related to your project. Please clear your .suo file and rebuild it. And you also could copy the original project files to the new project and rebuild.
如果新项目也无法找到,恐怕您的Visual Studio环境有任何问题.请尝试执行以下步骤来解决此问题.
If new project also could not be hit, I'm afraid that there has any problems on your Visual Studio environment. Please try with following steps to troubleshoot this issue.
- 检查是否已为Visual Studio安装了任何VS软件包.您可以在以下位置运行Visual Studio 安全模式,以防止在Visual Studio启动时加载所有第三方VSPackage,从而确保稳定的执行.
- 检查是否已从控制面板"中为Windows安装了任何更新->程序和功能->已安装的更新.
- 通过工具->重置所有Visual Studio设置.导入和导出设置->重置所有设置.
- Check whether you have installed any VS packages for your Visual Studio. You could run your Visual Studio in safe mode to prevents all third-party VSPackages from loading when Visual Studio starts, thus ensuring stable execution.
- Check whether you have installed any Updates for your Windows from Control Panel -> Programs and Features -> Installed Updates.
- Reset all Visual Studio settings through Tools -> Import and Export settings -> Reset all settings.
最好的问候,
威威
Best Regards,
Weiwei
这篇关于Visual Studio 2015社区调试断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!