如何在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
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.