You will need to install a CPU support package:

You will need to create a project:

You will need to build the project:

To debug on the simulator

To debug on hardware

To start debugging

The debugger will stop the program at the main, you can now debug the application.