Reputation: 810
When in android studio my logcat often starts to break down. It will start slowly outputing logs, one every few seconds except the logs are uppwards of 20-30 minutes old.
This happens whenever I am debugging, whether I am using a physical or an emulated device.
How can I fix logcat so it is actually useable?
Upvotes: 3
Views: 2046
Reputation: 1242
I have noticed this on certain devices because of the large buffer for logcat outputs. Certain things you can try:
Upvotes: 1
Reputation: 33
It's been 7 years since this question was posted but it's been happening to me too when connected to a smartphone via wifi. That doesn't happen to TVs. Also, it only happens when using MacOS. I haven't experienced it in Linux so far.
I followed the recommendation @Actiwitty gave us in his answer and it's half of the solution. What solved it to me was also restarting the logcat (the green button in the picture)
So the steps I follow to make it work are:
adb logcat -c
Upvotes: 0