microsoft / microsoft/vscode-js-debug
Feature Request: Add `Shared Worker` Debugging Support
@connor4312 is already working on this.
Since Sep 5, 2025.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.