I am working on an app and using HUAWEI phone for testing, whenever a crash happen app gets restarted and logs become disappear. Is there any setting in developer option or some thing else that can let crash dialog appears and shows crash logs.
I learnt this recently, hopefully it helps others out there.
Debug as you normally would, but once the crash and restart happens open up the Logcat tab. In the Logcat window at the top you can then select your previous process. It should be something like:
com.myapp.app(1234)[DEAD]
That'll give you the logs before the restart.
You can run the app Debugger mode and keep a break point in the activity where the crash occurs and navigate by going to next line using F8 until you encounter the crash.
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