I am new in react native. I want to see the logs of my react files. I am using android studio for using react-native project and genny motion as a simulator. Can you please guide me, how can I see the logs or enable android monitor in android studio?
Even I have already install react dev tools from Facebook for debugging the code: https://facebook.github.io/react-native/docs/debugging.html
but not able to get the particular solution
Already visit: How do you debug React Native?
How to do logging in React Native? I have checked so many solutions but it is not working in android 6.0 versions
But not working please guide me, Thanks in Advance
Note that as of React Native 0.29 and later, you can get logs without running the debugger. Just run react-native log-ios or react-native log-android on the command line inside your project folder. And when you open the Remote JS Debugging, you have to press option+command+i and check the console.
In App Developer MenuOn Android emulator, you need to press command + M. Debug JS Remotely − Used for activating debugging inside browser developer console. Enable Live Reload − Used for enabling live reloading whenever your code is saved. The debugger will open at localhost:8081/debugger-ui.
Yes, it was right there on React Native documentation. Run adb logcat *:S ReactNative:V ReactNativeJS:V in a terminal to see your Android app's logs.
If you're using window, you can try hit CTRL+M, else in mac CMD+D to open debugging menu. Once it open, choose REMOTE JS DEBUGGING
, it will automatically open chrome browser for you to debug js error. Android studio debugging will work if you're connected on real device.
Eg. of Debugging Menu
I've found out the answer for genYmotion from How do you debug react-native?. Don't know whether it'll work for you, but worth for try.
For an Android App, if you're using Genymotion you can toggle the menu by pressing ctrl + m, but you may have to enable it in the menu by :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With