Skip to content

feat: add a runtime config for debugger options - #17

Merged
okwasniewski merged 2 commits into
react-native-community:mainfrom
Saadnajmi:runtimeConfig
Mar 24, 2025
Merged

feat: add a runtime config for debugger options#17
okwasniewski merged 2 commits into
react-native-community:mainfrom
Saadnajmi:runtimeConfig

Conversation

@Saadnajmi

Copy link
Copy Markdown
Contributor

See react/react-native#38942 for context.

This PR is a port of a PR I made to React Native macOS, that never made it to React Native Core. It adds a runtimeConfig to the JSC instance (similar to what Hermes has) so we can enable/disable debugging and set a target name. This is particularly useful when there are multiple JSC instances you could debug.

I'm not sure how to test this, since the code here is slightly different than what was in React Native / React Native macOS, and I mostly just copy/pasted my changes.

@okwasniewskiokwasniewski left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! The build is failing for some reason. I'll also include @robik to take a quick look at the code

@okwasniewski
okwasniewski requested a review from robikMarch 19, 2025 15:37
Comment threadios/RCTJscInstance.mm Outdated
@Saadnajmi

Saadnajmi commented Mar 19, 2025

Copy link
Copy Markdown
ContributorAuthor

Looks good to me! The build is failing for some reason. I'll also include @robik to take a quick look at the code

Porting issue since JSCExecutorFactory no longer exists. Should be fixed now!

@okwasniewskiokwasniewski left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The E2E test is failing for some reason but I've checked locally and everything works. Thanks for this PR

@okwasniewski
okwasniewski merged commit 1d1e5e6 into react-native-community:mainMar 24, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Saadnajmi@robik@okwasniewski