views:

704

answers:

10

Does anyone know of a really good editor to debug JavaScript (other then Visual Studio 2008 and FireBug)?

+4  A: 

IE8 beta 2 has a nice debugger

redsquare
IE8's debugger is the best I have ever used. And I develop using firebug on a Mac, so thats' saying a lot!
apphacker
+3  A: 

Take a look at Venkman, the JavaScript debugger for Firefox:

http://www.mozilla.org/projects/venkman/

It's a real source-level javascript debugger where you can set breakpoints and step through code.

bmdhacks
+4  A: 

Opera has Dragonfly, though I still prefer Firebug. Before Firebug there was Venkman, though it's future is uncertain at this point.

Zach
+5  A: 

Here is an article, Advanced JavaScript Debugging Techniques, that describes the use of several tools. One new tool I learned about that I hadn't heard of before is JSLint. Sometimes JSLint just immediately shows you your dodgy code that is causing the issue.

shadit
+1 for JSLint! I use it to scrub 3rd party code if it throws errors after being packed.
Andrew Hedges
I always use jsLint. And it's been getting picker and pickier all along.
Nosredna
+3  A: 

The Google chrome browser has a reasonable wee JS debugger built-in. There's a good list of the available commands here.

David Heggie
+2  A: 

Aptana Studio IDE has a nice javascript debugger.

The community version supports only Firefox, the professional one also supports Internet Explorer.

Alejandro Bologna
+1  A: 

For Internet Explorer debugging (and when you don't have VS 2008), you can use MS Script Editor. This is a good writeup on how to get it configured correctly:

http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html

Nick
+1  A: 

I work in Aptana. You set breakpoints, hover over variables, and do watches right in the editor. Love it. Never thought I'd move away from Firebug as my chief debugger.

Nosredna
+1  A: 

If you're accustomed to using Firebug, you might like Firebug Lite, implemented in JavaScript. You can use it as a bookmarklet, which is nice. I'm not sure how powerful it is, I imagine other, "real" solutions are better, but it's handy in a pinch.

Matt Olenik
It's not really a debugger. It's more of an inspector.
Nosredna