How do I debug a Chromium extension?

岁酱吖の 提交于 2019-12-13 04:44:42

问题


I'm trying to debug a Chromium extension 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.


回答1:


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.



来源:https://stackoverflow.com/questions/3782924/how-do-i-debug-a-chromium-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!