本文介绍了如何使用的printStackTrace在Java中(Eclipse中,机器人)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse开发Android应用程序。怎么看的printStackTrace输出?

I am developing an android app using eclipse. How to see printstacktrace's output?

推荐答案

的printStackTrace的输出可以在DDMS中可以看出 - > logcat的看法

printstacktrace's output can be seen in the DDMS ->Logcat view

请使用日志打印Log's.The消息类型,及其相关的方法调用是:

Please use Log for printing Log's.The message types, and their related method calls are:

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中

To see Log output go to DDMS > LogCat

这篇关于如何使用的printStackTrace在Java中(Eclipse中,机器人)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 17:26