Like firebug for debugging javascript,
is there such a feature in eclipse? or do I need a plugin?
Use the Display view, or a bit quicker: highlight the code you want to run and right-click/Execute or Ctrl+U.
You can use the Display view to execute commands while debugging. You can find this in Window -> Show View -> Display
ctrl+shift+D to execute it. (I typed command; <ENTER> and was wondering why nothing happened).Select the line and press ctrl+shift+D or ctrl+shift+I
This will give the result in a popup.
Use the debug shell! Coming from node, I was pretty used to being able to mess with my env variables at any time using node --inspect in chrome, and so it was imperative for me to find the same experience in eclipse without having to use JDB.
To open the debug shell, go to Window → Show View → Debug Shell
After you write the code you wish to run, simply highlight it, right click, and execute (⌘U also works)
I believe that what you're looking for are "watch expressions". Just mark the piece of code in the source code view, right-click and select "Watch".
I'm currently using Eclipse Photon (v4.8.0). Eclipse changed the "Display" View name to "Debug Shell View". Here, you can execute commands on-the-fly.
you can use the 'Display' view to evaluate expressions in eclipse.
Look under the debug list of views. It is a standard par part of the java tooling so you don't need a plugin