google chrome extension :: console.log() from background page?

后端 未结 11 1963

If I call console.log(\'something\'); from the popup page, or any script included off that it works fine.

However as the background page is not directly

11条回答
  •  渐次进展
    2020-11-30 17:25

    You can open the background page's console if you click on the "background.html" link in the extensions list.

    To access the background page that corresponds to your extensions open Settings / Extensions or open a new tab and enter chrome://extensions. You will see something like this screenshot.

    Chrome extensions dialogue

    Under your extension click on the link background page. This opens a new window. For the context menu sample the window has the title: _generated_background_page.html.

提交回复
热议问题