user1807772
user1807772

Reputation:

LogCat goes crazy (Eclipse)

I'm noticing a strange behaviour when i plug in any android device to my computer. It starts showing some messages in the LogCat in Eclipse as soon as i plug it in. Same thing with my HTC and ASUS tablet.

This has never happened before and I dont remember doing anything out of ordinary when I developed my app yesterday.

Any1 has an idea how to stop this ?

Thanks in advance

Upvotes: 0

Views: 1210

Answers (4)

Glen Pierce
Glen Pierce

Reputation: 4801

I had the same problem with my Nexus 5. Eclipse wouldn't recognize the device, so I messed around with the device window a bit and then the log cat started to go crazy.

After several reboots, I un-checked the USB debugging option in the phone's Developer settings and re-checked it.

Problem solved.

I think something in the Device window changed when I performed this action, but I'm not certain.

Upvotes: 0

leenephi
leenephi

Reputation: 900

From my experience it's perfectly normal for the logcat to start displaying messages as soon as you plug in a device. At the least it means it's working! ;)

However, once you start building and running your application and picking up errors the specific filter for your application will start displaying which will only show logs pertaining to your app.

It's set by default to switch to your app once an error displays, but you can change that default by going to Preferences > Android > LogCat and changing "Show logcat view..." from "Error" to "Verbose" or whatever works. That way it will switch to showing your application's logs faster. Beyond that, you can do further specific filters.

Hope that helps XD

Upvotes: 0

Boardy
Boardy

Reputation: 36205

This can't be stopped as such as the log cat in eclipse will retrieve anything where logging is being done of some sort whether it is an app, or android itself.

You can filter it, I think at the top of the log cat window there is a text field to only show log messages that contain a certain string and If I remember correctly there are also buttons to the right to only show error messages or warning or both etc.

Upvotes: 0

span
span

Reputation: 5614

You can add filters to the logcat so that you only show relevant information.

Upvotes: 2

Related Questions