Using Trace

After youset up trace hardware andset up trace with MPLAB® X IDE, you can begin using trace. On a Debug Run, trace will continue to fill the trace buffer with data, rolling over when the buffer is full, until a program Halt. For more on the trace buffer, see"Real Time Hardware Instruction Trace".

Viewing Trace Data

When trace is enabled and code is run, trace data will be collected by the emulator. Once the device is halted, trace data will be decoded and displayed in the Trace window (Window > Debugging > Trace).

HWInstructionTrace.jpg
Figure 1: Trace Window

Improving the Trace Experience

Remove as many USB devices from your PC USB ports as you can. This should improve trace throughput.