System Debug Reference Manual (32650-90888)

294 Chapter6
System Debug Command Specifications M-X
WHILE
WHILE
While
condition
evaluates to TRUE, executes all commands in
cmdlist
.
Syntax
WHILE
condition
DO
cmdlist
Parameters
condition
A logical expression to be evaluated.
cmdlist
A command list (or a single command) executed while condition evaluates
to TRUE.
Examples
$nmdebug > var n 7
$nmdebug > while n > 0 do {wl n; var n n-1}
7
6
5
4
3
2
1
A simple while loop example.
$nmdebug > while [pc] >> $10 <> $2000 do ss
Single step until the next Pascal/XL statement number.
Limitations, Restrictions
none
XL
The XL command is a predefined alias for the PSEUDOMAP command.
Syntax
XL alias for PSEUDOMAP