Bug 263340

Summary: Web Inspector: Can't debug Web Extension Service Workers
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Web InspectorAssignee: Qianlang Chen <qianlangchen>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes, qianlangchen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: All   
OS: All   

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>