User`s guide
MPLAB
®
IDE User’s Guide
DS51519B-page 40 © 2006 Microchip Technology Inc.
Next, select Debugger>Reset>Processor Reset and a green arrow shows where the
program will begin. This was part of the template file. The first instruction in memory
jumps to the label called Main, where your code was inserted. This instruction jumps
over the PIC18XXXX vector areas in lower memory.
FIGURE 2-17: CODE AFTER PROCESSOR RESET
To single step through the application program, select Debugger>Step Into
. This will
execute the currently indicated line of code and move the arrow to the next line of code
to be executed.
There are shortcuts for these commonly used functions in the Debug Tool Bar.
TABLE 2-1: DEBUG SHORT CUT ICONS
Debugger Menu Toolbar Buttons Hot Key
Run F9
Halt F5
Animate
Step Into F7
Step Over F8
Step Out
Reset F6
TIP: Click on the appropriate icon on the toolbar or use the hot key shown next to
the menu item. This is usually the best method for repeated stepping.