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.