-
Notifications
You must be signed in to change notification settings - Fork 331
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