HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

2-: 40
The STEP command is a command-only statement. That is, it can only be
issued at the interpreter prompt and cannot be placed in a program.
Pressing CONTROL E also issues the STEP command.
Syntax
STEP
Examples
The following shows an example of the STEP command. The program pauses
at line 110, and the STEP command is issued during that pause.
>LIST
100 LET A=3
105 PRINT "HI"
110 PAUSE
120 PRINT A
130 PRINT A+A
140 PRINT A*A
150 PRINT "BYE"
999 END
>RUN
HI
>STEP
3
130 PRINT A+A
>STEP
6
140 PRINT A*A
>STEP
9
150 PRINT "BYE"
>CONT
BYE
>
Trace and Untrace Statements
Trace statements trace lines, variables, or both. Untrace statements
cancel trace statements.
A trace statement, while tracing lines, prints the following message
whenever one line transfers control to another:
TRACE IN LINE
line_num1
; BRANCH TO
line_num2
A trace statement, while tracing variables, prints the following mes-
sages whenever variables change value:
For a scalar variable:
TRACE IN LINE
line_num
;
var_name
=
new_value
For an entire array variable:
TRACE IN LINE
line_num
; ARRAY
var_name
IS CHANGED