MPLABX® Xpress offers a subset of the debugging options that are offered in the full MPLAB X version. MPLAB Xpress offers the Debug Toolbar as shown on this page along with Breakpoints, Variables and Watch windows. These can be found in the main toolbar menu under Window.
Debugging: Controlling program execution, in either a simulator or debugger, with the explicit capability of observing and modifying memory contents. Debugging gives the user the ability to observe program execution and make the necessary changes to ensure proper operation.
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
The debug toolbar will not be visible when you first launch MPLAB Xpress IDE. It will appear automatically when you start a debug session.
Finish Debug Session
Ends the current debug session and closes the connection to the debug tool.
Performs processor reset.
Pauses the debugging operation without finishing the session. Debug windows such as memory views and watches will be updated to reflect the current state of the device.
Resumes debugging until the next breakpoint or the end of the program is reached.
Executes one source line of the program. If the line is a function call, executes the entire function then stops.
Executes one source line of the program. If the line is a function call, executes the program up to the function's first statement and stops.
How to Debug a Project Video
This video shows how to Debug a project in MPLAB Xpress.