Skip to content

Conversation

@motiz88
Copy link
Contributor

@motiz88 motiz88 commented Jan 19, 2026

Summary: TSIA

Differential Revision: D90998980

motiz88 and others added 5 commits January 19, 2026 11:32
Summary:
Pull Request resolved: facebook#55055

TSIA.

Changelog: [Internal]

Differential Revision: D90174644

Reviewed By: robhogan
Summary:
Pull Request resolved: facebook#55056

Refactors InspectorPackagerConnectionTest.cpp to extract the test fixtures into a separate header file. This allows us to split `InspectorPackagerConnectionTest.cpp` into multiple files as we add more test cases, which is particularly helpful for LLMs writing tests.

Changelog: [Internal]

Differential Revision: D90174645

Reviewed By: robhogan
Summary:
Implements multi-debugger support in the C++ InspectorPackagerConnection class. This allows multiple debugger sessions to connect to the same page simultaneously via session IDs.

Key changes:
- Change session storage from pageId -> Session to pageId -> (sessionId -> Session) nested map
- Parse and include sessionId in connect/disconnect/wrappedEvent message handling
- Report supportsMultipleDebuggers: true capability in page listings
- Maintain backwards compatibility with legacy proxies that don't send sessionId
- Add new test file for multi-session scenarios
- Update protocol documentation for multi-debugger support

Differential Revision: D90174642
Summary:
Implements multi-debugger support in the Node.js inspector-proxy Device class. This complements the C++ InspectorPackagerConnection changes and enables multiple debugger sessions to connect to the same page simultaneously via session IDs.

Key changes:
- Replace single #debuggerConnection with Map-based #debuggerConnections keyed by sessionId
- Add #nextSessionId counter for generating unique session IDs
- Add #deviceSupportsMultipleDebuggers flag (default false for backwards compatibility)
- Update handleDebuggerConnection() to generate and use session IDs
- Update message routing to include sessionId in connect/disconnect/wrappedEvent
- Update test assertions to expect sessionId in message payloads
- Maintain backwards compatibility with legacy devices that do not send sessionId

Differential Revision: D90174643
Summary: TSIA

Differential Revision: D90998980
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 19, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 19, 2026

@motiz88 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90998980.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants