User manual
MPLAB
®
REAL ICE
™
In-Circuit Emulator User’s Guide
DS51616B-page 74 © 2008 Microchip Technology Inc.
7.3.11 Quick Trace Reference
If you are new to using the MPLAB REAL ICE in-circuit emulator trace feature, it is
recommended that you read through the entire trace section for a full understanding.
Use this section as a quick reference for trace.
1. Select Project>Build Options>Project
, Trace tab. For full trace capability, “Enable
Trace” should be checked and “Disable Trace Macros” should be unchecked.
Select the type of trace you want. (Make sure your hardware can support this
choice.)
2. Select Debugger>Settings
. Click the Clock tab and enter the instruction cycle
speed. Click the Trace tab to change the size of the trace buffer.
3. Right click in your code to enter trace macros (__TRACE, __LOG) as desired.
4. On the Project Manager toolbar, select Debug from the Build Configuration
drop-down list.
5. Rebuild your project, reprogram your target device and run your program.