How can I debug a Firefox extension with Firebug?

前端 未结 4 1158
失恋的感觉
失恋的感觉 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

    Please see MDN - Building An Extension - Debugging Extensions, which shows what tools Firefox provides you with to natively debug extension, also take a look at Dive Into Greasemonkey - Debugging User Scripts (PDF, p.13) which is aimed more specifically at your request.

    Other than that, see How to debug a Greasemonkey script with the Firebug extension?

提交回复
热议问题