Let me explain how I investigate and fix a bug in 3 steps, which was not appearing on my device but on the user's device.
Step 1) I install the Firebase #Crashlytics SDK on the app.
Step 2) I write logs to Firebase Crashlytics.
Step 3) I force my app to crash so that Crashlytics uploads the logs to the server.