Add a Duplicate Configuration

You can add a configuration that is the duplicate of an existing one and then make edits to it.

One reason to make a duplicate configuration is to create your own debug configuration. Although MPLAB X IDE provides debug macros for use with Microchip tools (see “Debug Macros Generated” in Debug Code), you may want to use your own debug macros or you may want to set up the same debug capabilities with third-party tools.

To set up a debug configuration:

  1. 1.Click Manage Configurations in the Project Properties window.
  2. 2.In the Configurations dialog, select a project configuration and click Duplicate.
  3. 3.Click Rename and enter a name in the New Configuration Name dialog, such as “My Debug” (see figure below). Click OK to close the dialog. Under “Configurations,” the name will be changed to “My_Debug” since spaces are not allowed.
    Figure 1. Create Debug Configuration
  4. 4.Click OK to return to the Project Properties window. The debug configuration (Conf: My_Debug) should now be visible (see figure below).
    Figure 2. Debug Configuration

To use macros in code to switch to other configurations, like debug, see Configuration Macros.