PIC32 Instruction Trace is only available for PIC32M MCU devices. Also, only some PIC32M MCU devices have the trace feature. Consult your device data sheet for details.
The “MPLAB ICE 4 PIC32 Trace Adapter Board” is available for legacy target connections.
The adapter board can be plugged into the target board via the 14-pin EJTAG connector to access debug pins from a PIM or device. Then the 9-pin Trace connector can be used to connect to the Trace port on top of the PIM or a device port pin connector.