Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding Stack Trace in Eclipse with Android

Not used to using Eclipse for java, mainly used jEdit but with the Android dev along comes Eclipse. I've switched to the debug window and pressed the debug button which starts my app, It crashes however I can't find the stack trace. I can see in the 'Debug' pane that it has crashed with a '' exception however I can't see any more 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 saying what went wrong. As I said all I'm getting is -

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

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

like image 495
Dave Avatar asked Feb 10 '11 13:02

Dave


1 Answers

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

Window -> Show view -> Console

(if it isn't listed, click on "Other" and find "Console").

When dealing with Android development, find the "LogCat" view, like I described above. The stack trace should be there.

like image 174
darioo Avatar answered Sep 27 '22 21:09

darioo