Check out the Threads side panel, it should show service-worker.js (active) file
You can unregister the service worker from about:debugging page
You can unregister the service worker by clicking on this button:
(in case the worker was registered in this page session)
Test Case #2 - Worker State
Assuming that the worker is registered from the test case #1
Open Firefox Developer tools and select the Debugger panel
Create BP in service-worker.js, line 33
Open about:debugging page and unregister the service worker
Click this button
, the BP should hit
Check out the Threads side panel, it should show service-worker.js (installing) - the state should be OK
Resume Debugger
Check out the Threads side panel, it should show service-worker.js (active) - the state should be OK
Test Case #3 - Scope
Assuming that the worker is registered and active from the test case #1
Open Firefox Developer tools and select the Debugger panel
The Threads side panel should show service-worker.js (active) and Main Thread
Create new expression in the Watch panel this
Change selection in the Threads panel, the value of this expression should change to
ServiceWorkerGlobalScope for the worker and Window for the main thread.
Tips for other test cases
The Call stack and Scopes side panel should be properly updated when switching between paused and resumed workers
Full debugging functionality should work (Variable Preview, Console expressions, WASM, etc)
Reloading the page when a worker is paused should not break the Debugger
Worker created within a worker should work as expected
Source file for the worker should be available in the Sources tree when the worker is registered. It should disappear when it's unregistered.