views:

700

answers:

3

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

+2  A: 

Inspect ctrl-shift-i or Display ctrl-shift-d?

Trevor Harrison
To clarify, you can highlight some code within the debugger and hit ctrl+shift+i or right-click->inspect to see the evaluation of the code
Rich Seller
+4  A: 

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.

AdamC
Expressions are pretty close. Thanks!
fatcat1111
No problem - glad it helped.
AdamC
+10  A: 

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.

Todd
i would recommend updating this as the correct answer as it is much closer to the immediate window than the "expressions view".
Michal
Thanks for that - I was missing the immediate window!
Bayard Randel