
233
Debugging
Section 7-8
Meaning
BRKPT sets and deletes breakpoints. When no line is specified, the current
breakpoint settings are displayed.
Example
BRKPT SET 200:
Sets breakpoint at line 200.
BRKPT DEL 100:
Deletes breakpoint at line 100.
BRKPT:
Displays the current breakpoint settings.
BRKPT DEL ALL:
Deletes all the current breakpoint settings.
7-8-3
Step Function (STEP)
Each time the STEP command is executed, the program executes a single
line or a specified number of lines.
Syntax
STEP [
numeric_expression
]
Meaning
The specified number of lines are executed. If no number is specified, 1 line is
executed.
Example
STEP 5:
5 program lines are executed.
STEP:
1 program line is executed.
7-8-4
Variable Monitor Function (WATCH)
It is possible to monitor the contents of specified variables (except array vari-
ables) using the WATCH command. If the WATCH command is input, then
whenever the BASIC program breaks due to a STOP command, a STEP com-
mand, a breakpoint, or a program error, the display will indicate that a break
has occurred and the current line number, and then the value of the variable
to be monitored will be shown at the terminal. The variables are displayed in
order in which the WATCH commands were input. A maximum of 16 variables
can be monitored at one time.
Syntax
WATCH (SET | DEL)
variable_name
Meaning
WATCH sets or deletes a specified variable to be monitored. When no vari-
able is specified, the list of currently monitored variables is displayed. A maxi-
mum of 16 variables can be monitored at one time. An array variable cannot
be specified for the variable name.
Example
WATCH SET A$:
Sets A$ to be monitored.
WATCH DEL B:
Stops monitoring B.
WATCH:
Displays the current list of variables being monitored.
Examples of Variable Monitoring
WATCH SET B$:
Sets B$ to be monitored
WATCH SET A:
Sets A to be monitored
When there is a break at line number xxx after the RUN command,
BREAK IN LINE xxx
B$ = “ABCD”
A = 3
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...