5.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® XC16 Assembler, Linker and Utilities User’s Guide” (DS50002106)

Options for Debugging