Display View

The Display view (in the Debug perspective) shows expression results in an unstructured format. Use it as a temporary work area in which to place expressions and calculate their values. Table 14 shows the commands on the Display view's toolbar.

Table 7-6. Display view toolbar

Icon

Description

Inspect the selected expression.

Display the selected expression.

Evaluate the selected expression.

Erase everything in the Display view.

There are four different ways to evaluate expressions in the Eclipse debugger:

Inspect (Ctrl+Shift+I or Run → Inspect)

Show the value of an expression in an expandable tree format. Optionally, copy it into the Expressions view. The value is never recalculated.

Display (Ctrl+Shift+D or Run → Display)

Show the value of an expression in a simple string format. Optionally, copy it into the Display view. The value is never recalculated.

Execute (Ctrl+U or Run → Execute)

Evaluate the expression but don't show its value.

Watch (Run → Watch)

Copy an expression into the Expressions view. Its value is recalculated every time you do a Step ...

Get Eclipse IDE Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.