Accessing console and devtools of extension's background.js

后端 未结 7 2361
粉色の甜心
粉色の甜心 2020-11-21 04:17

I just started out with Google Chrome extensions and I can\'t seem to log to console from my background js. When an error occurs (because of a syntax error, for example), I

相关标签:
7条回答
  • 2020-11-21 05:08

    If we want to read messages printed to console from the popup page, we can click the extension icon to open the popup page, then do right click on the popup page anywhere, a dropdown menu will display, we just click "Inspect" menu to open the developer tool. Notice that the popup page must be keep opening. If it is closed(by window.close()), the developer tool will be closed too.

    0 讨论(0)
提交回复
热议问题