March 3, 2010 12:13 by
bryan
I know that conditional breakpoints have been around for some time, I just keep forgetting how to set it, so I though it should be time write how to set a conditional breakpoint on my blog.
When you only want to break under certain conditions, you can right-click on a breakpoint red circle (or go to the Breakpoints Window and bring up the context menu on a given breakpoint) and select Condition to bring up the dialog box for conditional breakpoints.

You’re given two options: break only when the specified expression is true or break only when the specified value has changed. For this example, since I’m in a for loop, i’ll break when the value of result.Id == 22.

You’ll notice that the breakpoint circle now has a red plus on it to indicate it is conditional.

23d28cd9-a8a7-4a7d-bb11-45f1c1531db8|1|1.0
October 26, 2009 08:41 by
bryan
5be80379-3ea4-4e6b-83c6-1bd788761949|1|1.0