MPLAB® 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.
Start a Debug Session
A debug session can be started by clicking on the Debug Project button. 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.
Debug Toolbar
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.
Reset
Performs processor reset.
Pause
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.
Continue
Resumes debugging until the next breakpoint or the end of the program is reached.
Step Over
Executes one source line of the program. If the line is a function call, executes the entire function, then stops.
Step Into
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.