Eclipse Logcat window cuts off exception stack traces

后端 未结 3 1604
后悔当初
后悔当初 2021-01-04 00:03

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 a

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-04 00:45

    If your code calls a method which produces too tall of stack you can (and should) handle the exception in your code and output whatever is relevant to logs.

    If you have no exception handling whatsoever and you don't even know where in your code should you be putting such a handler then the problem is entirely elsewhere - you should be handling exceptions a bit better than that.

提交回复
热议问题