I am using Android Studio 1.2.2 and Logcat sometimes automatically clears itsself after my app crashes.
How can I prevent this behaviour?
Go to the File option > click on “INVALIDATE CACHES/RESTART” then a dialog box will pop up, Select the “INVALIDATE CACHES/RESTART” button. This will automatically restart and build the index of android studio.
you just click on the line three times and you can selectd the line , it will stops scrolling.
Logcat is a command-line tool that dumps a log of system messages, including stack traces when the device throws an error and messages that you have written from your app with the Log class. This page is about the command-line logcat tool, but you can also view log messages from the Logcat window in Android Studio.
The Logcat window in Android Studio displays system messages, such as when a garbage collection occurs, and messages that you added to your app with the Log class. It displays messages in real time and keeps a history so you can view older messages.
yes, Because it filters Log of our application. And when app crashes LogCat has no app to filter.
Also remember that LogCat has previous messages that we can get again by setting NO FILTER to LogCat.
Just select No Filters. It will give your messages again :-)
Edit Filter Configuration ->Add your package name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With