Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LogCat stops working

If my Eclipse works for over 3 or 4 hours, and I want to debug my Android app after that time, Logcat literlly dies. Only when I restart my Eclipse LogCat reborns.

I have searched but it doesn't seem that I found any solutions to these.

Any ideas?

Thanks in advance.

like image 452
and_apo Avatar asked Jul 18 '13 17:07

and_apo


People also ask

How do I restart Logcat?

You need to press Alt + 6 twice to restart the Logcat. Restarting logcat often helps when it becomes irresponsive.

What is Logcat buffer?

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.

How do I stop Logcat from clearing?

Prevent clearing the log when the app crashes By default when the app got crashed the logcat clear's in the android studio. To prevent this, click the right end chooser(Filter Configuration chooser) in the logcat tab then select Edit Filter Configuration option and enter current app name and package name.


1 Answers

Yes, it's a known problem which time to time could appears in Eclipse. My investigation lead me to suggestion that a problem could be in synchronization of ADB with IDE Eclipse. Mostly was helpful a restart of ADB.

1) go to command line (console mode)

2) change dir to ...sdk\platform-tools

3) type "adb kill-server" in command prompt and execute

4) type "adb start-server" in command prompt and execute

Then check the LogCat, most likely you will see that logs running again

The last way to resolve it - just restart an Eclipse, but this way is not comfortable

like image 125
Dimon Avatar answered Oct 06 '22 19:10

Dimon