Visual Studio Quick Tip

Improve Your Debugging Experience In Visual Studio With Conditional Breakpoints

Sick of stepping through loops until your desired data object is found? Use conditions for breakpoints to speed up debugging!

2 min readSep 6, 2022


Photo from Wikimedia, modified by author with Pixelied

A conditional breakpoint is just a regular breakpoint that interrupts the app process if a condition is satisfied. A regular breakpoint stops every time the compiler passes by. So you have more control over your debugging workflow.

Create a breakpoint by clicking on the first column of your code editor window. Then right-click on the breakpoint and select Insert Conditional Breakpoint. Here you can define a boolean term as a condition, a hit count, or a filter condition to narrow down the number of times the debugger will stop.

Video of conditional breakpoints in Visual Studio by author

A useful tool when you need to step through a loop or when your dataset is big but you are only interested in a specific subset of them.

Find more tips for Visual Studio here:

Visual Studio Tips

13 stories




Developer for .NET, Flutter, Firebase, blogger on, find my ebooks and freebies on, contact me on!