Debug worker threads

The Debugger tool shows all source code for all running worker threads. The code for Service workers is listed in the Sources tab of the debugger. You can open the file for the service worker in the code section and set breakpoints, conditional breakpoints, and logpoints just as you can with other JavaScript code.

You can now debug the content on worker threads inside the DevTools Toolbox (no need to open a new window). See the selected item my-worker.js in the Sources panel.

You can set a breakpoint, conditional breakpoint, or logpoint on any active thread.

When paused in a worker thread, the context of the Debugger is fully updated to show the right callstack, scopes, etc.