0

I will try to write a google extension. To remember the basic steps I decided to use the user guide to make a basic extension exactly as described here.

But in the part where I have to show the message "This is a popup!" the message is not shown in the console of the current tab.

I need to go to chrome://extensions/ and click on "Inspect views service worker" like the image below

Hello extesion in extension manager page

When I click on "Inspect views service worker (Inactive)" opens a devTools where I can see the message "This is a popup!".

And if I click on the extension again for the message to appear on the console again I have to reload the extension.

Can someone explain this behavior better to me? Why doesn't the message appear in the tab I'm using? Why do I have to reload the extension to see new messages? Will it be like every script I create?

James
  • 1
  • Extensions have different parts that run in different contexts with their own devtools console. To print in the web page console you need a content script. – wOxxOm Mar 09 '23 at 16:49

0 Answers0