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

[IOS] Can not connect React Native Debugger when run with Hermes #755

Closed
JameFreshket opened this issue Feb 28, 2023 · 18 comments
Closed

[IOS] Can not connect React Native Debugger when run with Hermes #755

JameFreshket opened this issue Feb 28, 2023 · 18 comments

Comments

@JameFreshket
Copy link

React Native Debugger app version: 0.13
React Native version: 0.71.3
Platform: iOS
Is real device of platform: No
Operating System: macOS

Can not connect react-native-debugger with Hermes in React Native CLI, Please help me to find solution or workaround?

@JameFreshket JameFreshket changed the title Can not connect React Native Debugger when run with Hermes [IOS] Can not connect React Native Debugger when run with Hermes Feb 28, 2023
@daviaugustos
Copy link

Same issue here. I tried a workaround (Open Debugger in iOS simulator not working in RN 0.70.0 #34615) found at react-native repo, disabling hermes temporarily, but how I'm using the new Turbo Modules arch is not possible to do that.
image

@NBROKN
Copy link

NBROKN commented Mar 2, 2023

I had the same issue and for other reasons i went with a dev build, and since i had sdk48, remote debugger was not an option, i tried to downgrade to sdk47, then the reanimated library didn't work and i read in expo doc that even if it did, it wont work with remote debugger. Since i needed that reanimated library, i went back to sdk48 and for some reason, now i have remote debugger option in app dev menu and just confirmed that react native debugger fully works. Go with a dev build and see if it works for you.

That's my 2cents that i still cant make sense of.

@MrNaughtZero
Copy link

I too had this issue today. Changing the engine inside your app.json can help you get debugger working:

"jsEngine" : "jsc"

@TheElmo
Copy link

TheElmo commented Mar 6, 2023

@jhen0409 Are there plans to look into this?

@codiku-dev
Copy link

codiku-dev commented Mar 6, 2023

Indeed "jsEngine" : "jsc" in app.json is going to work, but hermes is a great improvement, so we need a way to be able to use rnd even with hermes

@irumiantcev
Copy link

"jsEngine" : "jsc" doesn't work with iOS simulator. So we have only one opportunity to run Debugger with Android simulator.

@about-coding
Copy link

"jsEngine": "jsc" worked for me after running npx expo start --localhost. Important to use the --localhost flag

@irumiantcev
Copy link

"jsEngine": "jsc" worked for me after running npx expo start --localhost. Important to use the --localhost flag

you have no ability to switch jsEngine property in expo46 for iOS. Only for Android. So, --localhost flag will not help.

@about-coding
Copy link

I see. I've upgraded to SDK 48 and it's possible also for iOS

@surya9901
Copy link

surya9901 commented Mar 16, 2023

I too had this issue today. Changing the engine inside your app.json can help you get debugger working:

"jsEngine" : "jsc"

I tried this but still it's not working for me. Pls correct me if I am wrong.

"react": "18.2.0",
"react-native": "0.71.4",
Metro version: 0.73.8

Screenshot 2023-03-16 at 6 19 30 PM

Screenshot 2023-03-16 at 6 19 06 PM

debugger issue

@Nantris
Copy link

Nantris commented Apr 6, 2023

Duplicate of #573?

@JameFreshket
Copy link
Author

Any update?

@gusgard
Copy link

gusgard commented May 3, 2023

I created a package to solve this issue

yarn add react-native-devsettings
import 'react-native-devsettings';

basically, it is doing NativeModules.DevSettings.setIsDebuggingRemotely(true);
https://www.npmjs.com/package/react-native-devsettings?activeTab=readme

@gusgard gusgard mentioned this issue May 3, 2023
@jaexplorer
Copy link

@gusgard trying now

@jaexplorer
Copy link

@gusgard Omg I love you this works.

@JameFreshket
Copy link
Author

@gusgard I appreciate your comment, bro. It's the best one I've seen this year.

@ilyausorov
Copy link

@gusgard Omg I love you this works.

Came in to say this too

@NathanNovak
Copy link

@gusgard Thanks so much for this!

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

No branches or pull requests