How to set conditional breakpoints in Visual Studio?

MrClan picture MrClan · Jul 12, 2011 · Viewed 98.6k times · Source

Is there an easy way to set conditional breakpoints in Visual Studio?

If I want to hit a breakpoint only when the value of a variable becomes something, how can I do it?

Answer

Jeff picture Jeff · Jul 12, 2011

Set a breakpoint as usual. Right click it. Click Condition.