Like firebug for debugging javascript,
is there such a feature in eclipse? or do I need a plugin?
Like others say, you use the Display view. But for some variants of Eclipse, it may be named differently. For instance, if you are using Spring Tool Suite as your Eclipse, the View name corresponding to Display view is Debug Shell.