Debugging Basics
Debugging Client Script
Debugging Server Script
Executing Commands and Evaluating Expressions in the Immediate Window
Tips for Debugging