

To open the Display view, select Window > Show View > Display. This can be useful if you want to evaluate complex expressions without changing your original and restart the debugging. The Display view allows you to write your own expressions, statements or any code in general that would be evaluated or executed in context with the suspended program code. Using the Display view to evaluate and execute statements You can also manually write the expression in the view.ģ. This will open the Expressions view and show the value of the expression (see below image). To do this, select the desired expression, then right-click and select Watch. This way its value will be displayed whenever the program is suspended at each iteration of the loop. If you want to continuously evaluate an expression, say because it is within in a loop, you can watch it in the Expressions view. Watching an expression in the Expressions view

Alternatively, do Ctrl+ Shift+ I after selecting the expression.Ģ. When the program execution is suspended at a certain line (either due to a breakpoint or manually stepping through the debugger), you can manually evaluate an expression by selecting the expression in the code, then right-clicking and selecting Inspect as shown in the below screenshot.

There are several to evaluate a certain expression when debugging a Java application.
