How can I debug a Firefox extension with Firebug?

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

    In the bottom right hand corner there should be a little Firebug icon. Single or double click to open then you see some tabs at the top. Click the "Console" tab for real time debugging, or the "SCript" tab to view the scripts that have been loaded. Note, you can also load CSS and HTML through Firebug, use the "Viewer" icon to view HTML code on the page in real time.

提交回复
热议问题