Wednesday, January 23, 2008

Setting Visual Studio conditional breakpoints

I had to figure out if my logic statement was executing correctly for a particular object in a 1,000 item collection.  I remembered something in the Visual Studio docs about setting “conditional breakpoints” and it turns out they are SUPER EASY to use.  Just add a breakpoint like you would normally do and set the condition in the breakpoint window (see Figure 1).

No comments: