1

I have a peculiar problem. My hardware is old and slow, so when I try to use genymotion with remote debugging, it's so slow it's unusable (I mean wait-10-minutes-for-simple-action unusable).

Running on device has its own set of problems which I won't go into here so it's out of question too.

So how do I see console logs without remote debugging? It's also okay for me to use a workaround like yellow/red screens, but I don't know how to display those.

1
  • Do you know how to do this in iOS? Commented May 10, 2019 at 21:20

1 Answer 1

3

You can use terminal for (Android) debugging.

adb logcat *:S ReactNative:V ReactNativeJS:V

or you can use Android Studio for debugging. For iOS you can use Xcode.

Updated

You can display logs Android or iOS by following commands in a terminal:

react-native log-ios
react-native log-android

Checkout the Debugging docs for more detail.

Sign up to request clarification or add additional context in comments.

3 Comments

How about for iOS?
react-native log-ios
Thanks Pir, however this only works if run in simulator. The adb technique works even when run on device. I was wondering if there was similar for when running on iOS device.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.