Evaluating expressions
In this section, you will evaluate expressions in the context of your running VJO program.
-
Debug MyTest.js to the breakpoint in the
main() method and select Step Over twice to populate size. (See the Debugging your Programs section for full
details.)
-
Open the Display view by selecting Window > Show View > Display
and type the following line in the view:
size
-
Select the text you just typed, and from its context menu, select Display.
(You can also choose Display Result of Evaluating Selected Text (
) from
the Display view toolbar. Not yet implemented)

-
The expression is evaluated and the result is displayed in the Display view.
-
On a new line in the Display view, type the following line:
arguments
-
Select this line, and select Inspect from the context
menu. (You can also choose Inspect Result of Evaluating
Selected Text (
) from the Display view toolbar.)
-
A lightweight window opens with the value of the evaluated expression.
Not yet implemented

Expressions view