Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Immediate Window for Eclipse

Does Eclipse have an analog to Visual Studio's "Immediate Window", a window where I can evaluate statements while in the debugger?

like image 224
Justin R. Avatar asked Jul 10 '09 21:07

Justin R.


People also ask

What is the shortcut key for immediate window?

To display the Immediate window, open a project for editing, and then choose Debug > Windows > Immediate or press Ctrl+Alt+I. You can also enter Debug. Immediate in the Command window. The Immediate window supports IntelliSense.

How do I get the expression window in eclipse?

To manually open the Expressions view, go to Window | Show View | Debug | Expressions. The Expressions view allows you to monitor certain variables which you have decided to 'watch' during the debugging process. Selecting a variable will display details in the detail pane below the view.

What is the difference between immediate window and window?

The differences between the Command and Immediate windowsThe Command window can load dlls or packages into the IDE as well. The Immediate window, on the other hand, is solely used during debugging and is useful to execute statements, print values of a contextual variable, or even evaluate expressions.

What are the shortcut keys for debugging in eclipse?

A Java program can be debugged simply by right clicking on the Java editor class file from Package explorer. Select Debug As → Java Application or use the shortcut Alt + Shift + D, J instead.


2 Answers

Yes. The view name is "Display".

Window->Show View->Other It is under the Debug folder.

Once in there you evaluate statements while in the debugger.

like image 147
Todd Avatar answered Sep 21 '22 22:09

Todd


Eclipse has a really cool concept call Scrapbook Pages where you can evaluate statements even when you're not debugging. However, if you want to eval code using values from the current program, go to Window->Show View->Expressions. There you can put in any expression you want and track it as your program executes.

like image 24
AdamC Avatar answered Sep 21 '22 22:09

AdamC