Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to easily view and filter Android's logcat in Windows?

Tags:

android

logcat

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.

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

like image 803
Earlz Avatar asked Oct 03 '13 20:10

Earlz


People also ask

What is verbose in Android Logcat?

The tag of a log message is a short string indicating the system component from which the message originates (for example, "View" for the view system). The priority is one of the following character values, ordered from lowest to highest priority: V : Verbose (lowest priority) D : Debug.


2 Answers

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

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.

like image 110
dst Avatar answered Sep 23 '22 19:09

dst


For anyone using Android Studio:

The top answer is useful, but I found if you run monitor.bat from android-sdk\tools while Android Studio is already running, you will get conflict on the port:

"Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences."

So it was preferable to run it from the Android Studio menu:

Tools > Android > Android Device Monitor

like image 27
TT-- Avatar answered Sep 22 '22 19:09

TT--