Executes a sequence of commands while the language expression
(Boolean expression) you have specified evaluates as true.
Format
WHILE Boolean-expression DO (command[; . . . ])
1 – Parameters
Boolean-expression
Specifies a language expression that evaluates as a Boolean value
(true or false) in the currently set language.
command
Specifies a debugger command. If you specify more than one
command, separate the commands with semicolons (;). At each
execution, the debugger checks the syntax of any expressions in
the commands and then evaluates them.
2 – Description
The WHILE command evaluates a Boolean expression in the current
language. If the value is true, the command list in the DO clause
is executed. The command then repeats the sequence, reevaluating
the Boolean expression and executing the command list until the
expression is evaluated as false.
If the Boolean expression is false, the WHILE command terminates.
Related commands:
EXITLOOP
FOR
REPEAT
3 – Example
DBG> WHILE (X .EQ. 0) DO (STEP/SILENT)
This command directs the debugger to keep stepping through the
program until X no longer equals 0 (Fortran example).