run
The run
command starts the program.
Syntax
run [
argument [...]
]
- argument is an argument to be passed to the program.
Usage
The run
command causes your program to execute until a breakpoint
is reached or the program terminates normally.
Example
MAIN
DISPLAY arg_val(1)
DISPLAY arg_val(2)
END MAIN
$ fglcomp -M prog.4gl && fglrun -d prog.42m
(fgldb) break main
Breakpoint 1 at 0x00000000: file prog.4gl, line 2.
(fgldb) run AAA BBB
Breakpoint 1, main() at prog.4gl:2
1 MAIN
-> 2 DISPLAY arg_val(1)
3 DISPLAY arg_val(2)
4 END MAIN
5
(fgldb) next
AAA
1 MAIN
2 DISPLAY arg_val(1)
-> 3 DISPLAY arg_val(2)
4 END MAIN
5
(fgldb) next
BBB
1 MAIN
2 DISPLAY arg_val(1)
3 DISPLAY arg_val(2)
-> 4 END MAIN
5