Bug 263340 - Web Inspector: Can't debug Web Extension Service Workers
Summary: Web Inspector: Can't debug Web Extension Service Workers
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari 17
Hardware: All All
: P2 Normal
Assignee: Qianlang Chen
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-18 15:09 PDT by Timothy Hatcher
Modified: 2024-05-29 16:46 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2023-10-18 15:09:52 PDT
When pausing in the debugger at a breakpoint in a service worker, I can't inspect any local variables in scope, nor can I resume the script with the play button after it is paused. The service worker is frozen and dead at that point and can't be continued.

This is affecting web extensions at least, which are slightly different from normal service workers in that they run on the main thread.

An example extension can be found on bug 263170.
Comment 1 Timothy Hatcher 2023-10-18 15:11:44 PDT
I am also unable to execute anything in the console.
Comment 2 Radar WebKit Bug Importer 2023-10-18 15:21:37 PDT
<rdar://problem/117168726>