如何在Windows中轻松查看和过滤Android的logcat? [英] How to easily view and filter Android's logcat in Windows?

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

问题描述

我正在调试"仅在未连接调试器时才有问题的Xamarin Android应用程序,因此,我不得不依靠日志记录来找出问题所在.但是,从命令行执行adb logcat是非常痛苦的.持续的窗口滚动非常麻烦. Xamarin在Visual Studio中为logcat集成了一些功能,但实际上,我发现它无法使用.根据我在网上看到的信息,似乎每个人都在Eclipse中使用了一些logcat插件.但是,我没有或想要Eclipse.

I'm "debugging" a Xamarin Android application that only has a problem when a debugger is not attached, thus, I'm having to fall back on logging to figure out what the problem is. However, doing adb logcat from the command line is quite painful. The constant window scrolling is quite troublesome. Xamarin has some integration for logcat in Visual Studio, but in practice, I find it's too buggy to use. From what I can tell online, it looks like everyone uses some plugin for logcat in Eclipse. However, I don't have or want Eclipse.

是否有任何工具可以很好地且易于过滤(并且不会不断滚动)显示logcat?最好在GUI中,因为我不得不从一次尝试中找出很多错误的消息中筛选出很多信息

Is there any tool out there that presents logcat in a nice and easy to filter (and that isn't constantly scrolling) way? Preferably in a GUI since I have to sift through quite a few messages from a single run of trying to figure this bug out

推荐答案

如果您需要GUI,Android SDK会在

If you need a GUI, the Android SDK delivers a filterable logcat display tool in the Device Monitor.

android-sdk\tools文件夹中执行monitor.bat以将其启动.您可以使用过滤器栏右侧的向下箭头符号来启用或禁用滚动.

Execute monitor.bat in the android-sdk\tools folder to bring it up. You can en- or disable scrolling with the Arrow-Down symbol on the right of the filter bar.

这篇关于如何在Windows中轻松查看和过滤Android的logcat?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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