microsoft / microsoft/vscode-js-debug

Feature Request: Add `Shared Worker` Debugging Support

Open
#2,272 0 comments 0 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since Sep 5, 2025.

feature-request
Dominant language
TypeScript
Stars
2k
Forks
373
Avg merge
1d 9m
Merged PRs (30d)
6

Description

Overview

Add Shared Worker support to VS Code JavaScript Debugger, similar to existing Service Worker debugging capabilities.

Why?

Currently, Shared Workers aren't supported at all in the debugger (not even recognized as a target type), making it impossible to debug applications that use cross-tab communication and shared state. This is a significant limitation as Shared Workers are increasingly used in modern web applications.

Benefits

✅ Enable debugging of shared worker scripts (currently impossible)
✅ Inspect state shared across multiple tabs
✅ Set breakpoints in worker code
✅ Monitor cross-tab communication
✅ Debug real-time features (chat, collaborative editing)
✅ Troubleshoot shared resources (DB connections, caching)
✅ Bridge a significant gap in debugging capabilities

Challenges

❗ Multiple client connections to single worker
❗ Complex worker lifecycle management
❗ UI needs for connection status
❗ Cleanup on termination
❗ Performance impact consideration

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.