Why does the condition for a breakpoint failed to execute?

依然范特西╮ 提交于 2019-12-04 23:00:54

From VS2012 on, you have to switch to the Managed Compatibility Mode, to use conditional breakpoints. Why and how is described here:

switching-to-managed-compatibility-mode-in-visual-studio-2013

It's not possible as far as I know. What you can do instead is use of HitCount

or hardcode with a timer (as you like) in C# code

#if DEBUG 
  if(System.Diagnostics.Debugger.IsAttached)
     System.Diagnostics.Debugger.Break();
#endif
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!