Viewing the offscreen documents console

1,192 views
Skip to first unread message

Eric B

unread,
Jul 4, 2023, 4:38:26 PM7/4/23
to Chromium Extensions
Hi,

I was wondering how I can view the console for the offscreen document I created? Any help is greatly appreciated!

Eric B

unread,
Jul 4, 2023, 7:32:21 PM7/4/23
to Chromium Extensions, Eric B
Partial Solution: Write your code in a popup script and make sure it works and then put it in the offscreen document script (This is what worked for me)

Simeon Vincent

unread,
Jul 4, 2023, 7:56:43 PM7/4/23
to Eric B, Chromium Extensions
You can open a DevTools window for the offscreen document by either using chrome://extensions or chrome://inspect.

The extension's detail view on the chrome://extensions page will show a list of contexts that you can inspect.

chrome-extensions.png


The chrome://inspect page shows a wide variety of contexts that you can debug. You'll find offscreen documents listed in the "Other" category. You can begin debugging one of these contexts by clicking the "inspect" link.

chrome-inspect.png

Simeon - @dotproto


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/1a4f0977-75f7-4381-a75c-4d45c157f4ebn%40chromium.org.

Simeon Vincent

unread,
Jul 7, 2023, 1:50:28 PM7/7/23
to Eric B, Chromium Extensions
Looks like there is a bug in Stable that prevents DevTools from showing the offscreen document, but this has already been fixed. https://bugs.chromium.org/p/chromium/issues/detail?id=1449162

Simeon - @dotproto

Reply all
Reply to author
Forward
0 new messages