Starting and Stopping A Debug Session
Starting a Debug Session
After ensuring the desired debug startup option has been set and ensuring the appropriate programmer/debugger has been chosen, a Debug Session can be started by clicking on the Debug Project Icon.Four things will happen when a debug session has been initiated:
- The project will build
- MPLAB® X IDE will connect to the selected debug tool and download the built image
- The Debug Icons will appear on the Toolbar
- The application in the PIC® MCU will run according to the debug startup option
An illustration of MPLAB X IDE's user interface immediately after a debug session has been started. This example shows the operation when the Debug Startup option is set to MAIN.
When the program being debugged is not running, the location of the Program Counter is shown on the screen with a green line.