How to debug a Firefox extension with Chromebug?

前端 未结 1 1830
星月不相逢
星月不相逢 2020-12-06 03:42

I\'m trying to debug my Firefox add-on with Chromebug, but I can\'t see the error trace or log trace. I\'ve configured a dedicated profile and set about:config

相关标签:
1条回答
  • 2020-12-06 04:24

    Update April 2014: The browser debugger is now integrated in the "Browser Toolbox" and you no longer need to set about:config prefs. Just use the developer tools configuration/settings panel: "enable chrome debugging" and "enable remote debugging". The "Browser Toolbox" will then be available in the developer tools panel.

    Chromebug has not worked for me for many months. I think it's just been silently abandoned but thankfully on Firefox 19 or later, it's possible to use the built-in JS debugger on the browser itself. Go to about:config and set the following two prefs:

    devtools.chrome.enabled: true
    devtools.debugger.remote-enabled: true
    

    After you restart the browser, the Web Developer menu will contain a "Browser Debugger" entry.

    More info here: https://developer.mozilla.org/en/docs/Debugging_JavaScript

    If possible, I'd suggest using Aurora for your debugging because the built-in debugger was a little limited when first launched and keeps getting better with every release.

    0 讨论(0)
提交回复
热议问题