Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can I do to prevent Android Studio from automatically clearing my log

I've got an activity that when it launches, it crashes but it leaves no trace of what went wrong in the console. I can see a very brief moment of red text before its cleared. The dropdown which shows the currently debugged app quickly switches from my app to "no debuggable applications" and back in the blink of an eye.

Is there a way to prevent this behavior?

like image 773
Ohiovr Avatar asked Jul 07 '15 13:07

Ohiovr


2 Answers

You have to disable the ADB integration:

Tools -> Android -> Enable ADB integration

There should be no icon before this menu item.

Your LogCat now keeps the log output after your application closes or the application crashes.

like image 67
devz Avatar answered Mar 01 '23 05:03

devz


Look at the Android Studio console and find the drop down list which states 'Show only selected application'. Change it to 'No Filters' to see all log output from the Android device. You'll have to navigate to find your crash, but your class names, etc. and log tags will all be there so it won't be too difficult.

No filters

like image 20
Joseph Roque Avatar answered Mar 01 '23 04:03

Joseph Roque