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.