Skip to content

Restore Fantom DevTools launching with FANTOM_DEBUG_JS (#59410) - #59410

Open
rubennorte wants to merge 2 commits into
react:mainfrom
rubennorte:export-D127171074
Open

rubennorte wants to merge 2 commits into
react:mainfrom
rubennorte:export-D127171074

Conversation

@rubennorte

@rubennorte rubennorte commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Summary:

Restore DevTools launching when FANTOM_DEBUG_JS is set. Use a Chrome app window instead of the standalone shell, which can fail to start in restricted launch environments. Request DevTools from the runner after the inspector target registers, deduplicate launch requests for each tester connection, and run debugging sessions in band. Report failed launcher commands in the test output.

Changelog: [Internal]

Differential Revision: D127171074

@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 Oct 23, 2026
@meta-codesync

meta-codesync Bot commented Oct 23, 2026

Copy link
Copy Markdown

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

Summary:

Register DevTools middleware with `runServer`'s `unstable_extraMiddleware` option instead of overriding `server.enhanceMiddleware`. This hook is supported by both Metro from source and the pinned published Metro 0.87.0 package, so Fantom starts without the deprecation warning and remains compatible with OSS checks. DevTools forwards unhandled requests to Metro. Remove the unused `connect` and `ConfigT` imports and the unnecessary configuration mutation.

Changelog: [Internal]

Differential Revision: D127152281
Summary:

Restore DevTools launching when `FANTOM_DEBUG_JS` is set. Use a Chrome app window instead of the standalone shell, which can fail to start in restricted launch environments. Request DevTools from the runner after the inspector target registers, deduplicate launch requests for each tester connection, and run debugging sessions in band. Report failed launcher commands in the test output.

Changelog: [Internal]

Differential Revision: D127171074
@meta-codesync meta-codesync Bot changed the title Restore Fantom DevTools launching with FANTOM_DEBUG_JS Restore Fantom DevTools launching with FANTOM_DEBUG_JS (#59410) Oct 23, 2026

This branch has not been deployed

No deployments
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant