Like firebug for debugging javascript,
is there such a feature in eclipse? or do I need a plugin?
You can use the Display view to execute commands while debugging. You can find this in Window -> Show View -> Display