output
The output
command prints only the value of the specified
expression, suppressing any other output.
Syntax
output expression
- expression is a combination of variables, constants and operators.
Usage
The output
command prints the current value of the expression and
nothing else, no newline character, no "expr=", etc.
The usual output from the debugger is suppressed, allowing you to print only the value.
Example
MAIN
DEFINE x INTEGER
FOR x = 100 TO 200
DISPLAY x
END FOR
END MAIN
$ fglcomp -M prog.4gl && fglrun -d prog.42m
(fgldb) break 5
Breakpoint 1 at 0x00000000: file prog.4gl, line 5.
(fgldb) run
Breakpoint 1, main() at prog.4gl:5
2 DEFINE x INTEGER
3
4 FOR x = 100 TO 200
-> 5 DISPLAY x
6 END FOR
7
8 END MAIN
(fgldb) output x
100(fgldb)