Haven\'t touch javascript for 3 years. Just got a javascript project and wanted to know any new ways or tools emerged these years to debug javascript? I used alert 3 years
If you need IE7 debugging, use IE8 in compatibility view with developer tools.
I think a Visual Studio / IE8 combo is excellent. Beats Firebug for JavaScript debugging, IMO (and you, of course, use a framework like jQuery to handle crossbrowser issues).
You really need a crossbrowser toolkit. Here's mine:
EDIT:
IE 8 added some developer tools, but I haven't used them to any great extent.
EDIT:
If you haven't done JS development in a while I recommend saving yourself a lot of time debugging cross browser issues by browsing the compatibility tables on Peter-Paul Koch's excellent quirksmode site.
real programmers use printf() traces for debugging (kidding).
var de =true, bug =console.log||alert||(de=false)
de&&bug( "Enjoy!")
When not in debug mode, just do de=false. Minimal performance penalty