Page 1 of 1

How to do a logcat

Posted: Mon Oct 08, 2012 12:07 am
by sdevaney
The steps are a little different if you are not on Windows, but since most people are I will go ahead and write a quick tutorial for Windows and if you are on a different OS let me know and I will point out where you do things differently or use different tools.

As I said in my previous post it isn't hard and there are actually a lot of tutorials available just google 'how to create logcat on android'.

Step 1. Download the Android SDK from here: http://developer.android.com/sdk/index.html and install it. *Remember the path you install it to, you will need it later.*

Step 2. Download the latest Java JDK from here: http://www.oracle.com/technetwork/java/ ... index.html and install it.

Step 3. Download the Logcat-Tool from here: https://code.google.com/p/logcat-tool/

Step 4. Make sure USB Debugging is enabled on your device and plug it in to your computer via a USB cable.

Step 5. Run the Logcat-Tool downloaded above.*You may need to run as administrator in Windows.* This is where you need to remember the path you installed the SDK to. We actually need a part of the SDK called ADB that allows the computer and phone to talk to each other.

Step 6. Put the correct path into the Logcat-Tool. Make sure to include the \platform-tools at the end of your path.

Step 7. Start the log file (option 6 in the Logcat-Tool).

Step 8. Start Andors Trail on your phone and have the glitch occur.

Step 9. Follow the directions in the Logcat-Tool to save the log and unplug your phone.

Step 10. Send us the log file and we are hopefully one step closer to fixing a bug!


Let me know if anything needs more clarification.
sdevaney

Re: How to do a logcat

Posted: Mon Oct 08, 2012 12:44 am
by nyktos
thank you Scott, just for taking the time to post this...

Re: How to do a logcat

Posted: Sun Oct 14, 2012 12:20 pm
by Sarumar
Sorry :cry: I cannot help on this one for a while... Why there a not a child resistant laptops ? ... platefull of bolognese sauce on the keyboard.... I do not know whether to laugh or cry :?

...
I know that the electrical equipment operating in the blue smoke.... is there any way to put it back into laptop ?

Re: How to do a logcat

Posted: Tue Oct 16, 2012 3:39 am
by Pyrizzle
Great post!

Will have to work on downloading and setting this up when i get home (been suuuuper busy latley)

Re: How to do a logcat

Posted: Thu Oct 18, 2012 10:17 am
by Kasper
Hi.
I'm not sure, but to me it seems much easier to install osmonitor and export the logcat file with the export funktion. There is also the ability to export the dmesg log.

The Problem is: I don't see any andor relevant entrys. Is there a special version for debugging, wich writes messages to the log? Or is the logcat from osmonitor somehow different to the logcat generated the external way...?

Re: How to do a logcat

Posted: Thu Oct 18, 2012 5:01 pm
by sdevaney
Kasper wrote:Hi.
I'm not sure, but to me it seems much easier to install osmonitor and export the logcat file with the export funktion. There is also the ability to export the dmesg log.

The Problem is: I don't see any andor relevant entrys. Is there a special version for debugging, wich writes messages to the log? Or is the logcat from osmonitor somehow different to the logcat generated the external way...?
I have never used OS Monitor so I don't know what type of logging it does. I am testing a couple of logging tools suggested in another thread so I will add it to my test list. What is "easier" is a relevant term. For me personally I already had the JDK and Android SDK installed so downloading the Logcat-tool and using it was just as easy as looking for and downloading a logging tool on my device.

There is a debugging option in the code that you can switch on but you would need to compile your own apk.

Re: How to do a logcat

Posted: Thu Oct 18, 2012 7:05 pm
by Kasper
I don't got the sdk. Can you upload such an apk for me?

Re: How to do a logcat

Posted: Thu Oct 18, 2012 7:09 pm
by Samuel
IMO debugging should be far easier in the future...

There should be an enable log file setting. Everything else is a bloody workaround.

Re: How to do a logcat

Posted: Mon Nov 05, 2012 8:12 am
by ctnbeh13
Of the handful of Android app developers that I have had the opportunity and pleasure of working with, and done some troubleshooting/bug hunting for, including some reps from the Android Development Team, CatLog has been the app of choice that is more recommended than any other that has been brought to my attention. If you just want to download and install a full featured app that is pretty well designed in terms of options, as well as meeting the needs for which it was designed, I personally can't recommend anything better.

If you'd like to download it, and/or check it out, you can find it at the Google Play Store here:

https://play.google.com/store/apps/deta ... son.logcat

Nolan (the developer) is a great guy, and a very dedicated individual who seems to feel a sense of accountability to his users. People such as he and Oskar, are seemingly rare in this industry.

ATTENTION:
Android 4.1 (Jelly Bean) users: The apps can no longer read each other’s logs using the READ_LOGS permission. Unfortunately, this means you will have to already have rooted your device in order to use this app. Whether this applies to the method that sdevaney has outlined or not, I cannot say, as I don't happen to be using Jelly Bean, nor have I implemented the steps described in the original post for this topic.