Wednesday, September 9, 2009

Visual Studio Watch Window Tip #2

Did you know the Watch Window can not only display the values of your variables, but also execute code? This is a very handy feature which allows you to call functions in your code directly from the Watch Window. In the example above I call the sizeof operator to check the size of my variable 'test', and I also call my own function.