I’m porting a Chrome extension to the new Firefox Web Extension API and have some trouble debugging errors and glitches.
How can I see the console-log of the background-script and popup-page (aka browser action)?
The content-script is accessible by the browser content toolbox, but I just can’t find the correspondig way to the other parts of the extension. I tried the browser toolbox and starting the debugger from the addon-tab but neither way shows me the javascripts of my extension.
I feel like I’m missing something embarrassingly simple here…
Hmm, I’m not sure what the problem is. I just installed a WebExtension and I see console.log messages from background.js in the browser console. I can also see the source for background.js in the browser toolbox.
Perhaps if you post a link to the extension? Also, are you using Nightly or Aurora?
I’m using the nightly-build. The extension is a product in development and not yet published so I’m not allowed to post any sourcecode or delicate details. I’ll provide as much information as possible to resolve the issue without violating any company policy
Aside from some warnings about jquery-ui css rules multiple errors were logged. Their origin is unclear for me as they either stem from “unknown” or the internals of firefox.
Since some errors refer to insufficient permissions I have also attached the manifest (name/description etc. were replaced with placeholders): http://pastebin.com/TCH4viq3
I’m using FirefoxDeveloper Edition.
Click on “Debug” against extension in “about:debugging” opens up a dev box.
Even if we put breakpoints in background.js, there is no reload button such that those breakpoints are actually hit.