Search code examples
androidandroid-studioadb

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?


Solution

  • 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.