我正在使用 Eclipse 开发 Android 应用程序。如何查看 printstacktrace 的输出?
最佳答案
printstacktrace的输出可以在DDMS ->Logcat View 中看到
请使用Log来打印Log。消息类型及其相关方法调用为:
The Log.e() method is used to log errors.
The Log.w() method is used to log warnings.
The Log.i() method is used to log informational messages.
The Log.d() method is used to log debug messages.
The Log.v() method is used to log verbose messages.
The Log.wtf() method is used to log terrible failures that should never happen. (“WTF” stands for “What a Terrible Failure!” of course.)
要查看日志输出,请转至 DDMS > LogCat
关于java - 如何在Java(Eclipse,android)中使用printstacktrace?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15448490/