User manual
MPLAB
®
REAL ICE
™
In-Circuit Emulator User’s Guide
DS51616A-page 30 © 2006 Microchip Technology Inc.
5.5.7 Disabling Trace
To disable the trace capability:
1. Remove all trace and log macros from code.
2. Select Project>Build Options>Project
, Trace tab. Uncheck “Enable Instrumented
Trace”. Click OK.
3. Rebuild the project (Project>Build All
).
4. Reprogram the device (Debugger>Program
).
To temporarily disable trace transport:
•Select Project>Build Options>Project
, Trace tab. Select “Off” for Transport. Click
OK.
5.6 DEBUGGING FUNCTIONS
When you select the MPLAB REAL ICE in-circuit emulator from the Debugger menu,
debug items will be added to the following MPLAB IDE functions:
• Debugger Menu
• Right Mouse Button Menu
• Toolbars/Status Bar
5.6.1 Debugger Menu
Run F9
Execute program code until a breakpoint is encountered or until Halt is selected.
Execution starts at the current program counter (as displayed in the status bar). The
current program counter location is also represented as a pointer in the Program
Memory window. While the program is running, several other functions are disabled.
Animate
Animate causes the debugger to actually execute single steps while running, updating
the values of the registers as it runs.
Animate runs slower than the Run function, but allows you to view changing register
values in the Special Function Register window or in the Watch window.
To Halt Animate, use the menu option Debugger>Halt
, the toolbar Halt or <F5>.
Halt F5
Halt (stop) the execution of program code. When you click Halt, status information is
updated.
Step Into F7
Single step through program code.
For assembly code, this command executes one instruction (single or multiple cycle
instructions) and then halts. After execution of one instruction, all the windows are
updated.
For C code, this command executes one line of C code, which may mean the execution
of one or more assembly instruction, and then halts. After execution, all the windows
are updated.
Step Over F8
In C code, steps over the current line of code.
Note: Do not step into a SLEEP instruction.