See these topics:
Getting Started with Debugging
Preparing Your Program for Debugging
Using Debugger Commands and Setting Breakpoints
Summary of Debugger Commands
Debugging the SQUARES Example Program
Displaying Variables
Expressions in Debugger Commands
Debugging Mixed-Language Programs
Debugging a Program that Generates a Signal
Locating Unaligned Data