display service worker console messages on related windows in different child processes
Categories
(DevTools :: Console, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: bkelly, Unassigned)
References
(Depends on 1 open bug, Blocks 3 open bugs)
Details
(Whiteboard: SW-CLEANUP)
Reporter | ||
Updated•8 years ago
|
Reporter | ||
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Reporter | ||
Comment 2•8 years ago
|
||
Reporter | ||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Reporter | ||
Comment 7•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 8•7 years ago
|
||
Updated•3 years ago
|
Comment 10•2 years ago
|
||
Recent STRs:
(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from Bug 1875472 comment #0)
STR:
- Download and install an app
git clone https://github.com/janodvarko/prototypes cd prototypes/service-workers npm install --force npm start
Don't forget to set
devtools.debugger.features.windowless-service-workers
totrue
- Open DevTools Toolbox, select the Console panel
- Load the app (the index.js file)
- Click "Register Worker" button on the page
- Click "Execute Console log (from SW)" button
- Check the Console panel, the message isn't there
Honza
Comment 12•2 years ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #10)
Recent STRs:
(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from Bug 1875472 comment #0)
STR:
- Download and install an app
git clone https://github.com/janodvarko/prototypes cd prototypes/service-workers npm install --force npm start
Don't forget to set
devtools.debugger.features.windowless-service-workers
totrue
- Open DevTools Toolbox, select the Console panel
- Load the app (the index.js file)
- Click "Register Worker" button on the page
- Click "Execute Console log (from SW)" button
- Check the Console panel, the message isn't there
Honza
If I have the dom.worker.console.dispatch_events_to_main_thread
set to false, then start the debugger first (so we have a service worker target), then open the split console and click on the "Execute Console log (from SW)" button, I do see the logs in the console. So this should be fixed by Bug 1876530
Comment 13•28 days ago
|
||
As a web developer it would be amazing if I could see console.log messages from service workers in the client window devtools. This is what happens on Chrome and it makes debugging so much easier, but I develop on FF. Hopefully that's what this bug will fix.
At the moment it's a several step process to see the logs. When I console.log in a service worker I have to navigate to the debug window via about: and then find the service worker in the long list of serviceworkers, and then open it. Also there's no link from the "Application -> serviceworker" tab to the serviceworker's inspect/debug page.
Description
•