My logcat window in Eclipse only displays the first few lines of the StackTrace for each exception. This means that I often can’t see where an exception occured. Is there any way to change this setting?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re referring to the “…12 more lines…” part, you only see that for exceptions that were the cause of another exception. If the top part of the stack trace is the same as the earlier trace, the full set of frames is only shown for the outermost exception, and the other traces get the “…” treatment.
Put another way, the chunk of a trace that isn’t shown is a duplicate of a trace that appeared earlier in the exception cause chain. For example, suppose I have code where the method
main()callsone(), which callstwo(), and so on.four()throws an exception.two()catches it and re-throws it. The exception will look like this:The “caused by” exception says “… 3 more” rather than explicitly listing
one(),main(), anddalvik.system.NativeStart.main. So to get the full trace of the initial exception, you would start by reading its trace, then continue at the trace above.Note there is no overlap —
two()appears in both, but in the “first” trace it’s on the call tothree(), and in the “re-throw” trace it’s on thethrowinstruction.