Build a Project for Debugging
Last modified by Microchip on 2024/06/24 06:34
Click on the Debug Project button on the toolbar or select Debug > Debug Project from the menu.
The build process in MPLAB X IDE is a little different from other development environments. It is not necessary to explicitly choose a "Debug" mode when performing a debug build. Instead, there is a separate button on the toolbar that encapsulates several functions that must be performed in order to build and run your application in the simulator or on a target board.
The Debug Project button performs the following tasks:
- Build (make) the project in debug mode.
- If there are no build errors and you are working with hardware, your application is programmed into the target device using the debug tool selected in the project options.
- The target device is released from reset and your code begins running unless you have selected a different option in the Embedded Generic Settings section of the Tools Options dialog.