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

元气小坏坏 提交于 2019-12-31 10:29:07

问题


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.


回答1:


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

  2. in the package name field, set you application ID, and click OK.

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.



来源:https://stackoverflow.com/questions/30113827/android-studio-adb-wipes-out-logcat-files-when-app-crashes-ohh-myy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!