In project properties, set the "Hardware Tool" to "Simulator".
Identify which parts of the code were executed and detect dead code. Getting Started with Simulation in MPLAB X Microchip Pic Software Simulator
Measure exact cycle counts and execution times for precise timing routines. In project properties, set the "Hardware Tool" to
The industry-standard, free tool for this purpose is the , which includes a comprehensive built-in simulator, enabling developers to simulate code execution on 8-bit, 16-bit, and 32-bit PIC MCUs. What is a PIC Software Simulator? In project properties