4.4.1 How Do I Generate Debug Information?

For the compiler and assembler, the command-line option -g is used to generate debugging information. For details, refer to the following document (available on the Microchip website) and see the following section of this user’s guide:

MPLAB® XC-DSC Assembler, Linker and Utilities User’s Guide” (DS-50003590)

6.6.5 Options for Debugging