Eclipse Logcat window cuts off exception stack traces

后端 未结 3 1640
后悔当初
后悔当初 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:41

    you can overload all the log methods (log.d, log.i, log.e, etc) with (String tag, String msg, Throwable tr) parameters, where the third parameter is the exception. This will give you the full stacktrace in logcat

    http://developer.android.com/reference/android/util/Log.html

提交回复
热议问题