Debugging Multiple Projects

If you need to work on more than one project at a time, MPLAB® X IDE allows you to do just that. Multiple projects may be opened in MPLAB X IDE and viewed in the Projects window. The following image shows two open projects, Lab04-Solution and TestProject.

TwoOpenedProjects.png

As we can see below, we have multiple debuggers connected to same PC and each project uses a different one. Lab04-Solution uses an ICD3 while TestProject uses a PICkit3™.

DifferentDebuggers.png

1

To start debugging each project, right-click on the project's name on the Projects window and select Debug.

DebugBothProjects.png

2

Open the Sessions window (Window > Debugging > Sessions) and you can switch between any currently running debug sessions.

Sessions.png
Sessions2.png

When one debug session is switched to another, the Watches, Variables, and the PIC Memory Views windows will switch to show the project currently being debugged. The status bits should also follow the currently selected project. The dashboard will follow the last selected project whether it is being debugged or not. This is by design.

© 2020 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.