MPLAB X IDE Debug Startup Options

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.

PCOpenOptions.png

Mac® users can open the Options window by selecting mplab_ide > Preferences" from the toolbar.

MACOpenOptions.png

Select the Debug Options

When the options window opens the following needs to be done

  1. Select the Embedded icon (shown here highlighted in Blue).
  2. Go to the 'Generic Settings' tab.
  3. Select from the 'Reset @' drop down menu the desired Debug Startup Option.
    1. to pause at RESET
    2. to pause at beginning of main ( shown below)
    3. to run
  4. Click on OK when you are done selecting.
OptionsWindow.png
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.