Javascript exceptions from content with chrome privileges don't appear in the add-on console

NEW
Unassigned

Status

()

Firefox
Developer Tools: Console
3 years ago
3 years ago

People

(Reporter: glandium, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
I was working on the js code for the tab stats addon (https://addons.mozilla.org/en-US/firefox/addon/tab-stats/) and broke it, which happens a lot considering how often I write javascript these days. Anyways, the addon ui is entirely in a web page with chrome privileges, so I was using the devtools, but I was completely lost because I wasn't seeing anything in the web console, so I used the debugger to go through the code and see the exception there, which was dreadful... until I realized the exceptions were in /a/ console... just not the web console, but the browser console.

This may or may not be related to bug 802543.
Component: Developer Tools → Developer Tools: Console
Apart from the Browser Console & Browser Toolbox, we now have the Add-on Toolbox which you can get at from about:addons by clicking the "Debug" button. Doesn't that suffice or is it that you didn't know about these options?
(Reporter)

Comment 2

3 years ago
I didn't know about it, but that doesn't help: the console there stays empty.
OK, that sounds like a bug in the Add-on Toolbox then (it may even be a dupe, but I can't find it right now). It is by design that the error doesn't appear in the web console.
Summary: Javascript exception from content with chrome privileges don't appear in the web console → Javascript exceptions from content with chrome privileges don't appear in the add-on console
You need to log in before you can comment on or make changes to this bug.