Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Java Development User Guide
Previous Page Home Next Page

Evaluating expressions

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

  1. Debug to the breakpoint in the setUp() method and select Step Over twice to populate fFull.  (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:


  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.)

    Display view with fFull.size selected and showing context menu

  4. The expression is evaluated and the result is displayed in the Display view.

    Display view showing evaluation result: (int) 2

  5. On a new line in the Display view, type the following line:


  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.

    Pop-up containing fFull.toArray() expression

Related concepts

Related tasks
Evaluating expressions
Displaying the result of evaluating anexpression
Inspecting the result of evaluating anexpression

Related reference
Expressions view

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire