views:

42

answers:

2

Is there a convenient way to do this for my extension? I know I can use FireBug to get traces for exceptions which happen in content, but I don't think it works for chrome (does it?). I couldn't get ChromeBug to work when I last tried it.

A: 

I think you need to set javascript.options.showInConsole to true in about:config to see the JS errors. More info on setting up an extension development environment here.

Annie
That shows extensions in the console, but _not their stack traces_.
Alexey Romanov
See this Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=228205
Alexey Romanov
I think you're stuck with try/catch then.
Annie
+1  A: 

Have you tried checking the "Show Chrome Errors" and "Show Stack Trace with Errors" options in the Console menu of Firebug 1.5? (They might be in earlier versions too.) If your extension is for Firebug itself, this post on Firebug tracing should be helpful.

Jason