Skip to content

Feature Request: Add Shared Worker Debugging Support #2272

@KengAcethylene

Description

@KengAcethylene

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

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions