Evaluating expressions

In this section, you will evaluate expressions in the context of your running VJO program.

  1. 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.)
  2. Open the Display view by selecting Window > Show View > Display and type the following line in the view:

    size

  3. Select the text you just typed, and from its context menu, select Display.  (You can also choose Display Result of Evaluating Selected Text (Display) from the Display view toolbar. Not yet implemented)

    Display view with size selected and showing context menu

  4. The expression is evaluated and the result is displayed in the Display view.
  5. On a new line in the Display view, type the following line:

    arguments

  6. Select this line, and select Inspect from the context menu.  (You can also choose Inspect Result of Evaluating Selected Text (Inspect) from the Display view toolbar.)
  7. A lightweight window opens with the value of the evaluated expression.

    Not yet implemented

Related reference
Expressions view