开发者

How do I debug a Chromium extension?

I'm trying to debug a Chromium extens开发者_开发问答ion with console.log(), but I noticed that nothing is appearing in my JavaScript console. I assume the console object for the extension is not the same console that the document has access to, so how do I dumb a variable into JSON so I can see the result. I'm looking to get something like console.log() with Firebug.


The default Javascript console does not work for extensions, in order to see the console for the extension, you have to:

  • Right click on the Browser icon

  • Click Inspect Popup

That window has the Console for your extension.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜