How can I debug a Firefox extension with Firebug?

前端 未结 4 1157
失恋的感觉
失恋的感觉 2021-01-12 02:02

I\'m trying to use Firebug to debug a JavaScript file in an extension I\'ve added to Fx 4.
Can anyone tell me how to do it? I can only see website scripts.

4条回答
  •  离开以前
    2021-01-12 03:01

    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, you can access the Browser Debugger through Tools > Web Developer > Browser Toolbox.

    (note that you must accept the incoming connection)

    See more at: https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/Debugging_JavaScript#JavaScript_Debugger

提交回复
热议问题