Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable the autoscroll feature in Logcat?

I use LogCat to look at the debug output of my apps. If other apps are running or the system has of the test device has some noisy background threads running LogCat will scroll all the time and I have to correct my position manually to read long stack traces.

Is there a way to disable the scrolling in LogCat? Or somehow tweak the scrolling settings?

like image 299
Janusz Avatar asked Jul 22 '11 10:07

Janusz


People also ask

How do I toggle auto scroll?

Step 1: Press Win + I at the same time to open the Windows Settings interface. Step 2: Navigate to Devices > Mouse. Step 3: Disable the option of Scroll inactive windows when I hover over them. Then, see if the issue of Windows 10 uncontrollable scrolling is fixed.

How do I freeze Logcat?

If you click on the logcat output before scrolling it should stop automatically scrolling. Such an annoying and obvious little bug. As stated in @taotao's answer: Triple click the line & voilla!


1 Answers

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

Just create a filter with the tag of the disturbing logs. Logcat will not filter those messages out of the main logview and slow down the scrolling.

This is not the best solution. It will lead to a LogCat with 15 or 20 different filters only used to remove not used log output.

UPDATE Additionally to using filters one of the last updates of the android tools added a pause button to logcat. Just click the button and autoscroll is disabled.

like image 87
Janusz Avatar answered Sep 28 '22 05:09

Janusz