Accessing console and devtools of extension's background.js

后端 未结 7 2390
粉色の甜心
粉色の甜心 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:00

    For followers who wish to see the debug console for a "content script" of their chrome extension, it is available by doing a normal "show developer console" then use the dropdown arrow to selects its "javascript environment" then you'll have access to its methods, etc.

提交回复
热议问题