Wednesday, March 11, 2009

Another Reason to Love the Watch Window

I feel like a kid in a candy store recently.

Have you ever been in one of those debugging situations where you want to check what the value of something in your code is, perhaps the result of a condition within an if statement? So you open up your watch window and type in the condition (or a portion of it) into the watch window to see what the result evaluates to.

Type no more, my friends. Next time, simply highlight the text in the tet editor that contains the statement you want to evaluate, then drag it to the watch window. The text you drag will be dropped into the watch window and immediately evaluated for you.

Just one more reason to love the watch window.