When a debug session is started MPLAB® X IDE's default mode is to immediately begin executing the application after the target board has been programmed. Some developers wish to change this mode so that the program 'waits' for the developer to signal the application to begin executing. Pausing execution after programming allows the developer to ensure the test platform is correctly set up prior to the application executing. You can change the Debug Startup option by following these steps:
Open the Project Properties Window
MPLAB X IDE's debug startup option is configured in the Options window.
To open the Options window, PC and Linux® user's will need to select Tools > Options from the toolbar.
Mac® users can open the Options window by selecting mplab_ide > Preferences" from the toolbar.
Select the Debug Options
When the options window opens the following needs to be done
- Select the Embedded icon (shown here highlighted in Blue).
- Go to the 'Generic Settings' tab.
- Select from the 'Reset @' drop down menu the desired Debug Startup Option.
- to pause at RESET
- to pause at beginning of main ( shown below)
- to run
- Click on OK when you are done selecting.