且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio 2015社区调试断点

更新时间:2023-02-27 13:34:47

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.

  1. 检查是否已为Visual Studio安装了任何VS软件包.您可以在以下位置运行Visual Studio 安全模式,以防止在Visual Studio启动时加载所有第三方VSPackage,从而确保稳定的执行.
  2. 检查是否已从控制面板"中为Windows安装了任何更新->程序和功能->已安装的更新.
  3. 通过工具->重置所有Visual Studio设置.导入和导出设置->重置所有设置.
  1. 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.
  2. Check whether you have installed any Updates for your Windows from Control Panel -> Programs and Features -> Installed Updates.
  3. Reset all Visual Studio settings through Tools -> Import and Export settings -> Reset all settings.

***的问候,
威威

Best Regards,
Weiwei