java - 如何在Java(Eclipse,android)中使用printstacktrace?

标签 java android printstacktrace

我正在使用 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/

相关文章:

java - 我应该使用什么数据类型来存储非终止有理数

android - Web 客户端库的云存储?

java - ShareActivityProvider 不显示为按钮

c - C 中的堆栈跟踪函数

java - zip4j 生成所有文件大小 = 0 的 zip

java - 如何在Spring中上传apk?

java - 如果作业正在运行则返回值

Android 将JSONObject 转换为HashMap 并使用SimpleAdapter 在ListView 中显示

java - Java 中的 printStackTrace() 方法有什么用?

c++ - Backward-cpp 中的颜色代表什么意思?