Eclipse 的即时窗口

Eclipse 是否有一个类似于 Visual Studio 的“即时窗口”的窗口,在这个窗口中,我可以在调试器中计算语句?

24358 次浏览

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

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.

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.