Skip to content

Commit

Permalink
Support launching experimental debugger for modern CDP targets (#42302)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #42302

Changelog: [Internal][Added] Support launching experimental debugger frontend for CDP targets marked as "modern"

See the definition of "modern" targets in D50967795.

Reviewed By: hoxyq

Differential Revision: D52786332

fbshipit-source-id: 13718e9ddf3ec050049ef7ec9a77f6cf1a7f82ee
  • Loading branch information
motiz88 authored and facebook-github-bot committed Jan 18, 2024
1 parent 716c728 commit ca2dde5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export default function openDebuggerMiddleware({
const targets = inspectorProxy.getPageDescriptions().filter(
// Only use targets with better reloading support
app =>
app.title === 'React Native Experimental (Improved Chrome Reloads)',
app.title === 'React Native Experimental (Improved Chrome Reloads)' ||
app.reactNative.type === 'Modern',
);

let target;
Expand Down

0 comments on commit ca2dde5

Please sign in to comment.