Use the MPLAB® Code Coverage license with MPLAB XC C compiler and MPLAB X IDE versions that support code coverage to view code coverage output.
MPLAB Code Coverage works with anything built from C source code.
MPLAB Code Coverage is supported on any debug tool supported by MPLAB X IDE.
Compiler Operation
Code coverage is supported by MPLAB XC C compiler instrumentation. The compiler adds a minimal amount of code in program memory to update flags in RAM to indicate coverage.
MPLAB X IDE Operation
The IDE will display highlighted covered code and percentages of covered code for project files. You may select which files to include for coverage by setting up file properties. See Code Coverage by Project File.
A report of the coverage may be generated also. See Create a Code Coverage HTML Report.