如何禁用的logcat自动滚屏功能?自动滚屏、功能、logcat

2023-09-06 01:32:19 作者:蹲在墙角唱领悟

我使用LogCat中来看待我的应用程序的调试输出。 如果其他应用程序正在运行或系统测试设备具有运行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.

有没有一种方法来禁用滚动在LogCat中?或者以某种方式调整滚动设置?

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

推荐答案

一种方法是创建一个过滤器为所有嘈杂的服务。

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

刚刚创建的令人不安的日志标签的过滤器。 LogCat中不会过滤这些邮件出主日志查看和减慢滚动。

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.

这是不是最好的解决方案。这将导致与15或20个不同的过滤器LogCat中只用于删除未使用的日志输出。

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.

更新此外,使用过滤器的Andr​​oid的工具,最后其中一个更新增加了一个暂停按钮logcat的。只要按一下按钮,自动滚屏被禁用。

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.