display

Displays the specified expression's value each time the program stops.

Syntax

disp[lay] expression
Note:
  1. expression is your program's expression that you wish to examine.

Usage

The display command allows you to add an expression to an automatic display list. The values of the expressions in the list are printed each time your program stops. Each expression in the list is assigned a number to identify it.

This is useful in tracking how the values of expressions change during the program's execution.

Example

(fgldb) display a
1: a = 6
(fgldb) display i
2: i = 1
(fgldb) step
2: i = 1
1: a = 6
16       for i = 1 to 10
(fgldb) step
2: i = 2
1: a = 6
17       let a = a+1
(fgldb)