Finding stack trace in Eclipse with Android

It is not used to use Eclipse for java, it is mainly used by jEdit, but with Android dev comes Eclipse together. I switched to the debug window and pressed the debug button that launches my application, it crashes, but I can not find the stack trace. I can see in the Debug panel that it crashed with an exception, but I no longer see any information. Not sure if you can get it, but I'm a little used to Visual Studio with line numbers and a bit more information about what went wrong. Like I said, all I get is

'Thread [<1> main](Suspended (exception RuntimeException))' 

in the debug window. Can anyone shed some light on where I can find more information?

+6
java android debugging stack-trace eclipse
source share
4 answers

For normal Java development in Eclipse, stack traces will appear in the console view:

 Window -> Show view -> Console 

(if it’s not in the list, click "Other" and find "Console").

When you are working with Android development, find the "LogCat" as described above. The stack trace should be there.

+6
source share

Check out the DDMS perspective and LogCat view. Android logs everything that can be viewed using LogCat.

+4
source share

You should read this guide: Debugging Android with Eclipse and ADT

+4
source share

You can directly enter adb logcat at the command line to display stack traces.

For more information see this page: http://developer.android.com/guide/developing/tools/adb.html#logcat

+3
source share

All Articles