Installation guide

Debug Environment
281
12.2.1 - Debug program execution
A program can be executed in different ways from
the Debug Environment. Single line execution of the
current line can be initiated by clicking on the
Step
command button. The
>>>>>>
symbol preceding
the line number indicates the line to be executed.
The program can be executed to the next breakpoint
encountered or end of program by clicking on the
Run
command button. Clicking on the
Halt
com-
mand button will stop a Running program. A pro-
gram that is running can also be placed in the Single
line execution mode by clicking on the
Step
or
Break
command button.
Note: The program status indicator shows the
status of program execution. The only time this
status will indicate Stopped is when the program
is halted or has executed an end statement in the
program. The indicator is green for running and
red for stopped.
12.2.2 - Breakpoint Setting/Clearing
Up to five breakpoints can be set in debug mode. To
change the breakpoint setting of a line, click on the
desired line and then click on the
Toggle break-
points
command button. When a line is set as a
breakpoint, a
(BRK)
will precede the line. The
breakpoint line numbers can be listed or cleared by
clicking on the
List breakpoints
command button
and than the appropriate command button.
12.2.3 - Terminal Window
The terminal window allows host command execu-
tion without leaving the Debug Environment. The
Terminal Window is selected by clicking inside the
Terminal window. A blinking cursor indicates that
the Terminal window is selected for host commands.
12.2.4 - Watch variables
The watch variable allows the programmer to view
the values of selected variables. To add or remove a
watch variable from the watch window click on the
Watch
command button.
To add a specific variable to the watch list, select the
variable from the Variable
list
and then click on the
Add watch
command button. To remove a specific
variable from the watch list, select the variable from
the
Watch list
and then click on the
Remove watch
command button. To add all the variables to the
watch list click on the
Add all
command button. To
remove all variables from the watch list click on the
Remove all
command button. To return to the De-
bug Environment screen click on the
Ok
command
button. The variable in the watch list will appear in
the
Watch Window
and its current value will be
displayed.
Another method of watching a variable is to high-
light the variable and then click on the
Instant
Watch
command button. The variable name and
value will be displayed. This variable can be added
to the watch window by clicking on the
Add watch
command button.
12.2.5 - Exit Debug Environment
The debug environment can be exited by clicking on
the
Exit
command button.
Instant watch menu
Add watch
Cancel
Variable
X
Value
0
X
Variable watch list
X
Y
Watch list
Variable list
X
A dd watch
Add all
R emove watch
Remove all
O K