If you're trying to reproduce a rare event and getting too many false positives with your breakpoints, you can easily make them conditional!

  Simply specify the condition for a breakpoint and Visual Studio will automatically ignore the breakpoint when the condition does not hold.

  VC++ Debug条件断点使用_IT