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
2010-02-25 07:28:10
That shows extensions in the console, but _not their stack traces_.
Alexey Romanov
2010-02-25 07:58:32
See this Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=228205
Alexey Romanov
2010-02-25 08:00:05
I think you're stuck with try/catch then.
Annie
2010-02-25 08:10:02
+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
2010-03-10 03:29:42