4.3.1.1 Start and Stop Emulation

To debug an application in MPLAB X IDE, you must create a project containing your source code so that the code may be built, programmed into your device, and executed as specified below:

Debug or execute project code in debug mode.
Pause or halt code execution.
Continue code execution after a pause or halt.
For paused/halted code, Step Into or execute one instruction. Be careful not to step into a Sleep instruction or you will have to perform a processor Reset to resume emulation.
For paused/halted code, Step Over an instruction.
Finish the debug session, which ends code execution.
Perform a processor Reset. Additional Resets, such as POR/BOR, MCLR and System, may be available, depending on device.