list
The list
command prints source code lines of the program
being executed.
Syntax
list [
location ]
where location
is:
{
[
module.]
function
|
[
module:]
line
}
- module is the name of a specific source file, without extension.
- function is a function name.
- line is a source code line.
Usage
The list
command prints source code lines of your program. By default,
it begins with the current line.
Example
MAIN
DEFINE x INTEGER
FOR x = 1 TO 10
DISPLAY x
END FOR
END MAIN
$ fglcomp -M prog.4gl && fglrun -d prog.42m
(fgldb) list 10
5 DISPLAY x
6 END FOR
7
8 END MAIN
9