我的断点一直运行良好,直到今天当代码运行时它们不再被击中.有什么办法吗?
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.
最好的问候, 威威
Best Regards, Weiwei
更多推荐
Visual Studio 2015社区调试断点
发布评论