Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio ADB wipes out logcat files when app crashes! Ohh Myy

Just upgraded latest Android Studio. Now when app crashes, the log files adb logcat disappear. It not only stops recording the whole logs seems to be suddenly wiped out. Not too cool for debugging. Do I need to set log cache size or something? Also noticed that debugger takes a very long time to collect its data, but this might be specific to the program I am testing.

like image 899
TheMobileGuy Avatar asked May 08 '15 00:05

TheMobileGuy


1 Answers

When I use Android Studio I face the same problem, I resolve this problem by a simple solution: Set the logcat filter:

  1. Click Edit Filter Configuration at right of logcat enter image description here

  2. in the package name field, set you application ID, and click OK. enter image description here

Next time the app crash, the logcat will not wipes out.

Very Glad my reputation is above 10, and I can add photo in my answer directly.

like image 119
weigan Avatar answered Oct 11 '22 14:10

weigan