views:

227

answers:

3

So, I'm working with some JS in Firefox and also working with the jetpack sdk. I am working in a JS editor, and then I run the sdk through the command line. However, when there is a bug there is no way to debug this because the JS is being run/loaded before the page and the DOM so firebug is to no avail.

Can anyone recommend a better tool for this? It is quite tedious "making educated guesses" about where errors are starting.

+1  A: 

You might want to check out the JavaScript debugger Venkman.

It's slightly more powerful than the debugger provided by FireBug.

Here's the Venkman Walkthrough which covers the basics. Not sure why they don't link to it from the front page...go figure.

Justin Niessner
awesome, thanks. working great so far.
Sara Chipps
A: 

Have you tried Chrome or even (gasp) IE8/9? They have built in javascript debuggers. I suspect you'll have the same problem, but it might be worth taking a look.

Joel Coehoorn
yeah, however, I'm doing firefox plug-ing development.
Sara Chipps
A: 

Or you could use this Jetpack SDK library made specifically for debugging your add-on code with Firebug: http://www.backalleycoder.com/2010/10/15/jetbug-my-new-add-on-sdk-debugging-library/ ;)

csuwldcat