display

The display command displays the specified expression's value each time program execution stops.

Syntax

display expression
  1. expression is a combination of variables, constants and operators.

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 program execution stops. Each expression in the list is assigned a number to identify it.

This command 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)