Visual Studio 2008 - 2010 - Developer Resourses - Debug breakpoint with condition ::: Lionfish Tehcnologies

Home / Developers Resourses / Tips

How to add a condition to a breakpoint while debugging on Visual Studio?

I forgot how many times I found myself like a robot pressing the F5 key when the debugger stopped in the same breakpoint over and over, until the condition I was waiting finally happen, well if it is sound familiar this tip if for you, here is what I found on my Visual Studio.

1.- Identify the breakpoint you want to add a condition, then right click, go to breakpoint menu, expand it and click on condition option.


2.- Then type the condition you are waiting, and the run your code with debugging.

Lionfish Technologies ® 2009 All rights reserved