Like firebug for debugging javascript,
is there such a feature in eclipse? or do I need a plugin?
You can also create a scrapbook page (a .jpage) file and type your code in there. Then click run. It looked slightly more convenient when I tried it.