How to disable autoscrolling in Logcat?

I use LogCat to view the debug output of my applications. If other applications are running or the system has a test device, there are some noisy background threads running LogCat will scroll all the time, and I have to manually correct my position in order to read long stack traces.

Is there a way to disable scrolling in LogCat? Or somehow adjust the scroll options?

+29
android android-logcat
Jul 22 2018-11-11T00:
source share
5 answers

One way is to create a filter for all noisy services.

Just create a filter with an alarm log tag. Logcat will not filter these messages from the main log and slow down scrolling.

This is not the best solution. This will result in a LogCat with 15 or 20 different filters, which are used only to delete the unused output log file.

UPDATE In addition to using filters, a pause button for the logarithm appeared in one of the latest updates to Android tools. Just press a button and auto scrolling is disabled.

+12
Jul 22 '11 at 10:10
source share

Logcat has a button at the top right that looks like an arrow pointing down with a line below it . Switch it to turn auto scan on and off.

logcat buttons

+11
Apr 11 '13 at 6:28
source share

The question may be a couple of years, but since it first appears on Google, I will just drop it here.

In Eclipse, go to Window , Preferences . In the Android section, there is the LogCat category. This category has the option Automatically enable/disable scroll lock based on the scrollbar position . Disable this to disable automatic scrolling.

+9
Oct 27 '14 at 10:56 on
source share

I found a quick solution. In Logcat, move the scroller up. When autoscrolling is required, bottom to bottom. You can also use the arrow keys.

+5
Jan 14 '12 at 13:12
source share

I agree ... with my own answer. You do not give any details about the environment, so I may be off topic, but here is my experience with GNU / Linux (without using Eclipse at all):

Firstly, I always define the tag in the application as a project constant and use this tag to filter with scripts/log simple bash script (checked in version control systems), as follows

 #!/bin/bash adb logcat LoaderManager:V MyApplicationTag:V MyExternalButInvolvedProvider:V SomeDepLibProjectTag:V *:E | ./scripts/coloredlogcat 

Using *:E , I will catch all the errors and fine-tune the verbosity level for the corresponding tags. I use this with a reasonable terminal history size and a great colorlogcat python script . Using the terminal, just by moving to the focused lines, stop automatic scrolling without stopping logging ... I just need to go to the last lines or press a key to get automatic scrolling again.

0
Nov 01 2018-11-11T00:
source share



All Articles