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
As others have pointed out, most javascript debugging tools come as part of a browser because they are tightly integrated with the Javascript engine itself. This is probably a good thing because you will want to debug each browser separately if you run into a browser-specific quirk.
In the Internet Explorer world, you have two options:
I use firebug most of the time with the following firebug plugins.
FireRainbow, FireRainbow enables javascript syntax highlighting for Firebug. This is really cool. Saves a lot of time.
FirePHP,FirePHP enables you to log to your Firebug Console using a simple PHP method call.
Widerbug, can leverage wide screens for js debugging/development. Obsolete now as it is supported in Firebug 1.9 right out of the box.
I use Javascript Debugger plugin to debug errors that are not easy to figure out in firebug. You can set up break points and step through problem area to see variable values..etc. It's a very useful tool.
For IE (which I don't suggest using), the latest version (IE8) includes developer tools.
For Firefox, there's an extension called Firebug that has DOM manipulation, a JS console, and more.
WebKit (used in Safari and Chrome) has a built-in Web Inspector that includes a JS debugger, along with a DOM outline and manipulation tools, and a JS console.
Firebug for FireFox and AJAX Dynatrace for IE http://ajax.dynatrace.com/pages/
LINE BY LINE JAVASCRIPT DEBUGGING
To get following set of features try any of the below mentioned two methods.
Features:
Method 1:
Method 2: