User manual
Basic debugging features UM0036
170/385 Doc ID 7705 Rev 11
For debugging, the Editor's active window may contain either a C-language or an Assembly
language source file that constitutes a part of the application (and containing debug
information).
Debug icons are placed in the Editor debug margin. When the application is run, the
Program Counter (PC) indicator is visible in the Editor window, indicating the current
program line. You can set breakpoints at selected lines to halt program execution wherever
you want.
Run options are accessed from the Debug menu. Program controls include a selection of
run and single step actions. The results of these actions, for example the Program Counter
position, the real values of program variables at that location, the Stack contents and other
debug data, are available in the Editor and the various view windows.
In addition, a Call Stack Frame indicator may be displayed relative to the Program Counter
(PC) indicator. The values of program variables at the position marked by the Call Stack
Frame indicator are available, whatever the location of the PC.
Editor contextual menu
In addition to editing features, the Editor contextual menu (available by right-clicking with the
mouse in the Editor window) gives you direct access to the debugging features described in
Table 61 .
Table 61. Editor contextual menu commands
Command Description
Insert Read/Change Data Breakpoint Refer to Section 5.9: Data breakpoints on page 186.
QuickWatch Refer to Section 5.4.2: QuickWatch window on page 174.
Go to... Move to the line specified.
Go to Disassembly
Move to the corresponding line in the disassembly window.
Refer to Section 5.5: Disassembly window on page 175.
Go to Next Line With Code
Reposition the text cursor on the next line containing
program code or data.
Go to Definition Of “ ”
When the cursor is on a symbol representing a program
element, this command moves the cursor to the location in
the code where the symbol is defined.
Go to PC (Program Counter)
The program information displayed in the STVD windows
is modified to show the program environment and values
as they should be for the PC located at the current source
code statement. This command may be used to redisplay
the current program values at the PC location, after other
values have been shown as a result of using one of the
other ‘Go To’ commands.
Insert/Remove Breakpoint,
Enable/Disable Breakpoint
Allow you to insert breakpoints, and enable/disable them.
These commands affect the line of code where the cursor
is located regardless of the cursor’s position in the line.