Create-react-native-app: How to have browser debugger with app on device

Created on 16 Jul 2017  路  8Comments  路  Source: expo/create-react-native-app

This is a question, not a bug report.

Is it possible to run the app through the Expo client app on device, but to have debugging output through the browser on my dev machine?

By default my terminal shows console output but the formatting is all screwed up for debug modules that write with colors/tables etc

All 8 comments

Hi @richkeenan! It is possible, on iOS for example you can shake the device to show the dev menu (when your app is open) and then choose "Debug Remote JS". React Native Debugger also works quite well. Check out the usage section to see how to integrate with Expo.

Thanks @brentvatne that's cool. Given that this solution isn't mentioned in the CRNA docs I think I'll make a PR to include this - I'm sure it's useful for people like me, who only have experience of CRNA and not react-native-debugger

@brentvatne does this also work for Android? Your answer only mentions iOS and I don't have an Android device to test on

Yup. Nice! A PR would be very welcome for that. Sorry I just assumed iOS for some reason, you can do it on Android with the same gesture -- shake the device and choose 'Debug JS Remotely'

@brentvatne Current latest Expo android client version (running on Nexus 5) does not invoke any Developer Menu when shaking

Is the shake gesture supposed to work on a detached app? I have the Expo app on my phone, and scanned the QR code from my expo project. Shaking does not pull up a debugger menu.

I have the same question as @dmongit. we are having considerably different performance on a handset vs a simulator and need to debug the handset but the shake does not bring up a debug menu.

Hi @brentvatne ,
Please give me full step by step suggestion for how to debug an application on chrome.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liujb picture liujb  路  5Comments

andyvanosdale picture andyvanosdale  路  3Comments

THPubs picture THPubs  路  4Comments

JackWReid picture JackWReid  路  4Comments

WeslleyNasRocha picture WeslleyNasRocha  路  4Comments