什么是LogCat中在Eclipse? [英] What is LogCat in Eclipse?

查看:179
本文介绍了什么是LogCat中在Eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么LogCat中做在Eclipse?

What does LogCat do in Eclipse?

我如何使用它?我从来没有使用的日志猫在Eclipse中,所以我不明白。

How do I use it? I have never used the log cat before in Eclipse, so I don't understand.

推荐答案

这是一个很好的和快速的方法来从您的设备上的应用程序和开发计算机交换信息。

This is a nice and quick way to exchange information from the application on your device and the development computer.

要使用的logcat,首次导入 android.util.Log 到项目中。现在,您可以从您的项目中调用静态类的日志开始记录。正如你可以看到下面,logcat中都有不同级别的日志记录。调试时,我们就用调试(D)记录的进展情况。当然,当你想记录一个真正的错误,你将使用错误(E)。

To use Logcat, first import android.util.Log into your project. Now you can call the static class Log from your project to start logging. As you can see below, Logcat has different levels of logging. When debugging, we’ll just use Debug (D) to log the progress. Of course, when you want to log an actual error, you will use Error (E).

V — Verbose (lowest priority)
D — Debug
I — Info
W — Warning
E — Error
F — Fatal
S — Silent (highest priority, on which nothing is ever printed)

有关详细信息,请参阅 href="http://www.droidnova.com/debugging-in-android-using-eclipse,541.html">调试Android中的。

For more detail, see Debugging in Android using Eclipse.

这篇关于什么是LogCat中在Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆