-
-
Notifications
You must be signed in to change notification settings - Fork 810
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
waiting for client connection #792
Comments
I followed the instructions on connecting to the React Native Debugger app, but Expo keeps opening Chrome dev tools by default |
I got the same issuse. when I try to connect the React Native Debugger, it opens a new Devtool by default. |
+1 here, tried many combinations and nothing |
same here |
I have the same issue. Js engine changed to jsc and nothing. In on expo sdk49. |
+1 |
Same here. It's very frustrating. When I do Device -> Shake, it opens the menu: There's an option called "Open JS debugger". Which opens a chrome devtools instance and not React Native Debugger. There is no more option "Debug JS remotely". All the docs that I find are outdated in this regard. At the very bottom of that menu there's a "Open React Native dev menu" option.
This is probably the most confusing and least clear documentations I've seen in my life. |
I was able to get this working in my project following the approach in this package: https://github.com/gusgard/react-native-devsettings. I didn't want to add a new dependency to my application so I instead added this snippet:
Now I'm calling |
@AlecR did you ever get this working with Expo Go? or only in Dev Build? I used your code above, and put it in my APP/_layout.tsx file, when using the new expo-router v2 since the project doesn't use a APP.tsx file, it uses a _layout.tsx under an APP directory. It seems to add a new menu Item in the dev build but not expo go. Was hoping to get something working in expo go, but it seems I may be out of luck. const addDebugMenuItems = async () => {
const message = {
stop: '(*) Stop Debugging',
debug: '(*) Debug JS Remotely',
};
DevSettings.addMenuItem(message.debug, () => {
NativeModules.DevSettings.setIsDebuggingRemotely(true);
});
DevSettings.addMenuItem(message.stop, () => {
NativeModules.DevSettings.setIsDebuggingRemotely(false);
});
};
export const enableDebugging = async () => {
setTimeout(addDebugMenuItems, 100);
};
export default function Layout() {
enableDebugging();
return (
<Example>
</Example>
)
} |
Installing the package an importing in App.tsx helped me 👍🏽 |
Yes, you're right. I tried it that way too, and it works perfectly. However, there's one condition: the project cannot run outside Expo Go; it needs to be run in development builds. |
useful |
It has always been 'waiting for client connection', Why?
I used Expo to create the project and started normally, but I have been unable to connect.
used Expo go, run to Android phone
Expo version: 49.0
The text was updated successfully, but these errors were encountered: