Changing the Values of Symbols

You can assign values to symbols of type boolean, int, short, byte,
long, float, double, or char as your program runs.
In the Data card:
-
Make sure your program was compiled using javac -g. You must
use the -g flag to get symbol information.
-
Make sure your program is suspended at a point where the symbol you
want to modify is within scope (known to the program at this point in
execution).
-
Display the symbol in the Data card by typing the symbol name into the
Expr field, or into the left column of the Expression/Value table, and
pressing <Enter>.
The symbol is evaluated and the results are printed either in the
display area below the Expr field or in the right column of the
Expression/Value table.
Note: Evaluating the pseudo-variable "super" is
not supported. You can work around this by displaying the derived class
which shows the member fields inherited from its parents class.
-
Edit the value of the symbol by double-clicking the symbol, replacing
the value, and pressing <Enter>.

See Also

Guide to the Cosmo Code Development Environment
12-96*231