Logging to console from Firefox extension?

前端 未结 4 962
无人及你
无人及你 2021-01-02 02:02

I understand that I can log to the console when using a Firefox extension with the cfx run command.

Is there a way to log to a console after the extens

4条回答
  •  心在旅途
    2021-01-02 02:26

    Have you tried console.log() with Firebug? (I know you have tried Application.console.log() and Firebug.console.log() already)

    I just tried it in the Web Console on FF16 running Firebug 1.10.4 and it seems to work: Firefox Web Console

    Here are some more examples from the Firebug Wiki itself: FirebugWiki Console API

    Additionally, you can write messages of different types in the console, such as: console.debug(), console.info(), console.warn(), console.error()

提交回复
热议问题