有没有办法看到来自Android的一个完整的堆栈跟踪? [英] Is there a way to see a complete stack trace from android?
问题描述
当我得到了我的应用程序未捕获的异常,并跟踪打印到logcat的,反正是有使整个跟踪打印出来?在跟踪结束,这总是有一些像...... 10多个。
When I get an uncaught exception in my app and the trace prints to the logcat, is there anyway to make the entire trace print out? At the end of the trace it always has something like "...10 more".
例如:结果 03-11 16:25:53.572:ERROR / AndroidRuntime(3297):抛出java.lang.ClassNotFoundException:致net.notify.notifymdm.listeners.PackageInstallerReceiver装载机dalvik.system.PathClassLoader [/数据/app/net.notify.notifymdm-2.apk]
03-11 16:25:53.572:ERROR / AndroidRuntime(3297):在dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
03-11 16:25:53.572:ERROR / AndroidRuntime(3297):在java.lang.ClassLoader.loadClass(ClassLoader.java:573)
03-11 16:25:53.572:ERROR / AndroidRuntime(3297):在java.lang.ClassLoader.loadClass(ClassLoader.java:532)
03-11 16:25:53.572:ERROR / AndroidRuntime(3297):在android.app.ActivityThread.handleReceiver(ActivityThread.java:2780)
03-11 16:25:53.572:ERROR / AndroidRuntime(3297):10 ...更多
推荐答案
通常情况下,... N多重presents n个同样的错误多行,反正。
Usually the "...N more" represents n more lines of the same error, anyway.
的http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#printStackTrace%28%29
这篇关于有没有办法看到来自Android的一个完整的堆栈跟踪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!