how to view the error stack trace in android?

2019-02-23 03:54发布

问题:

Can someone tell me clearly from where i can view the android error stack trace? i tried searching , but never found a clear-cut answer

Thanks

回答1:

Stack traces are exposed via LogCat, either in an IDE window, or via adb logcat on the command line.



回答2:

Print your stack trace and check the message in the Logcat (using DDMS) tool.

For more info about debugging, see this article.



回答3:

In eclipse you have the logcat view.

If you can't see it go to : Windows > Show View > Others and in the box look for the Android folder you'll see the LogCat view.