Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add a runtime config for debugger options #17

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

Saadnajmi
Copy link
Contributor

See facebook/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.

Copy link
Collaborator

@okwasniewski okwasniewski left a comment

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 robik March 19, 2025 15:37
@Saadnajmi
Copy link
Contributor Author

Saadnajmi commented Mar 19, 2025

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!

Copy link
Collaborator

@okwasniewski okwasniewski left a comment

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:main Mar 24, 2025
3 of 4 checks passed
Sign up for free to 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