I have tools like firebug and web developer to debug the code with firefox browser is any similar tool we can use with google chrome and internet explorer
In Chrome's menu (on a Mac at least):
View > Developer > Developer Tools
On Chrome, go to the page menu (the one that looks like a page), then Developer and Developer Tools (Control+Shift+I shortcut)
For IE, download IE8 and that comes with developer tools. (Tools> Developer Tools) or F12.
There is also Firebug Lite which is nice because it sort of looks and feels like Firebug.
With Internet Explorer you can use Visual Studio to debug code, here some howtos : http://www.google.com/search?q=using+visual+studio+to+debug+javascript+in+internet+explorer
Visual Studio is not so bad for debugging as it open new tabs while entering in "eval" sections, permitting you to view values and add breakpoints inside them.
Additionally, to debug IE6, I run XP Mode on Win7. The default installed version of IE6 comes with similar developer tools that are activated via a button in the menu bar.