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".
当我在我的应用程序中获得未捕获的异常并且跟踪打印到logcat时,无论如何都要打开整个跟踪?在追踪结束时,它总是有“......更多”的东西。
Example:03-11 16:25:53.572: ERROR/AndroidRuntime(3297): Caused by: java.lang.ClassNotFoundException: net.notify.notifymdm.listeners.PackageInstallerReceiver in loader dalvik.system.PathClassLoader[/data/app/net.notify.notifymdm-2.apk] 03-11 16:25:53.572: ERROR/AndroidRuntime(3297): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243) 03-11 16:25:53.572: ERROR/AndroidRuntime(3297): at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 03-11 16:25:53.572: ERROR/AndroidRuntime(3297): at java.lang.ClassLoader.loadClass(ClassLoader.java:532) 03-11 16:25:53.572: ERROR/AndroidRuntime(3297): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2780) 03-11 16:25:53.572: ERROR/AndroidRuntime(3297): ... 10 more
示例:03-11 16:25:53.572:ERROR / AndroidRuntime(3297):引起:java.lang.ClassNotFoundException:loader dalvik.system.PathClassLoader中的net.notify.notifymdm.listeners.PackageInstallerReceiver [/ data / app / net .notify.notifymdm-2.apk] 03-11 16:25:53.572:ERROR / AndroidRuntime(3297):at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)03-11 16:25:53.572:ERROR / AndroidRuntime(3297):at java.lang.ClassLoader.loadClass(ClassLoader.java:573)03-11 16:25:53.572:ERROR / AndroidRuntime(3297):at 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个
1 个解决方案
#1
0
Usually the "...N more" represents n more lines of the same error, anyway.
通常,“...... N more”代表同样错误的n行。
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#printStackTrace%28%29
#1
0
Usually the "...N more" represents n more lines of the same error, anyway.
通常,“...... N more”代表同样错误的n行。
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html#printStackTrace%28%29