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
When you are using Express edition you can try this:
#if DEBUG if( fooVariable == true ) System.Diagnostics.Debugger.Break(); #endif
if statement makes sure that in release build breakepoint will not be present.