Conditional break points can be quite handy and indispensable if you are debugging a code that is looping though a large no of iterations. It is tedious to loop though every iteration to find the problem case. A awesome way to trouble shoot this, is to use Conditional breakpoints!
Conditional Breakpoint to match a string
Set a break point and right click on it (left most gray area) and select condition. In this case we are look for a condition when the string for example contains the world 2007. So will write the following condition
mystring.IndexOf("2007") >= 0 # In the same dialog, set true radio button for this condition.
when you execute this code, the break point will be hit whenever the string mystring contains the world “2007”.