Datasheet

PICkitâ„¢ 3 Debug Express Lessons
© 2009 Microchip Technology Inc. DS41370C-page 39
3.6.3.2 STEP
Stepping, also known as single-stepping, allows the code to be executed one
statement at a time. There are three step options:
Step Into
This will step through statements one at a time until a function call is reached.
When Step Into is selected on a function call, the debugger will step to the first
statement in the called function. Shortcut key is <F7>.
FIGURE 3-28: STEP INTO
Step Over
This will step through statements one at a time. When a statement includes a
function call, the entire function will execute and the debugger will step to the next
statement after the function call. It will not step into the function. Shortcut key is
<F8>.
FIGURE 3-29: STEP OVER
Step Out
This completes execution of the current function and steps to the next statement
after the function call.
You can step through lesson code by using the shortcut key for Debugger > Step Over
,
<F8>.
3.6.3.3 RUN
Debugger > Run
<F9> will begin code execution until it is halted by the user or
encounters a breakpoint.
3.6.3.4 RESET
Debugger > Reset > Processor Reset
will perform a full reset of the target
microcontroller, so execution can begin again from the start of the program code. This
is only available when the target is halted.
Halt the demo board PIC18F45K20 if it is currently running, and select Debugger >
Reset > Processor Reset <F6> This will open up a new file in the MPLAB IDE called
c018i.c. This is the start-up code, part of the MPLAB C library. This library code
initializes the C software stack, assigns appropriate data values to any initialized data
variables, and jumps to the start of the application function main().