I'm currently facing an issue which only exists in production/release build for Android. Is it possible to run debugger or view logs for production/release builds?
Asked
Active
Viewed 1,893 times
3 Answers
0
Try the following:
Run the logger for android using the following:
npx react-native log-android
Then run your app in release mode:
npx react-native run-android --variant=release
All of your console.log() and console.warn() should be displayed.
0
Use console.log, console.warn, etc.
You can try simply run the following to see logs in the console:
react-native log-ios
react-native log-android
Reference: https://stackoverflow.com/a/38056698/9877424
Md. Robi Ullah
- 1,003
- 1
- 14
- 25