如何Android Studio中筛选logcat的? [英] How to filter logcat in Android Studio?

查看:1524
本文介绍了如何Android Studio中筛选logcat的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我logcat中有太多的输出,所以我想用一些关键词来过滤它,基本上只显示包含关键字的输出。有没有办法做到这一点Android Studio中通过UI?

In my logcat there is too much output, so I'd like to filter it using some keywords, basically displaying only the output containing the keyword(s). Is there a way to do that in Android Studio through the UI?

推荐答案

有两种方法可以做到这一点,无论是在IDE的底部(其中显示的logcat输出)Android的标签。

There are two ways to do this, both are in the Android tab at the bottom of the IDE (where the logcat output is displayed).

首先,你可以简单地在上面输入一些东西到搜索框中,并应过滤含有您键入文字的讯息。

First, you can simply type something into the search box at the top and it should filter only messages containing the text you type.

第二,你可以通过点击下拉菜单右上方做先进的过滤,这应该是默认显示的无过滤器,然后选择编辑过滤器配置并指定要过滤的内容。使用这种方法,你也节省了过滤器,并在下拉列表中选择他们可以重新使用它们。

Second, you can do advanced filtering by clicking on the dropdown at the top right, which should be displaying No Filters by default, and choose Edit Filter Configuration and specifying what to filter on. Using this method you also save the filters and can re-use them by selecting them in the dropdown.

截图:结果

Screenshot:

这篇关于如何Android Studio中筛选logcat的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆