Search code examples
c++debuggingvisual-c++visual-studio-2005breakpoints

How do you add conditional breaking based on another breakpoint being hit? Visual C++


I have a bunch of generic code that is used a lot, which i'd like to poke into in order to deal with a bug in a certain specific case.

So I'd like to break on a set of breakpoints only if some other breakpoint has been hit. Is there a way to do this in Visual 2005? I'm using C++ code.

Thanks!


Solution

  • If the trigger logic is complex enough, sometimes I find it easier to just add a DebugBreak(); call into the source.