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 4,776 times
        
    3 Answers
4
            
            
        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,703
- 3
- 20
- 32
3
            
            
        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.
 
    
    
        Iqbal Morshed
        
- 31
- 2
 
    