Debugging your applications
It is assumed that you know how to debug your code by running through your code, stepping out and stepping over the code, running to the cursor, and setting breakpoints. However, there are other useful tools available when using the debugger. These include the following:
As you can see, there are a good number of different windows available to help debug your applications. The Immediate window is very good for executing commands when your program is paused. The Locals window is good for seeing the present state of your variables, and the call stack is useful for finding where an exception occurred, especially if it is in close code that is not yours! Take the time to run through your source code with these windows open. Different windows such as XAML Binding Failures are only used when working on the XAML-based code. But other windows, such as Immediate, Locals, Output, Autos, and Call...