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

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

问题描述

LogCat在Eclipse中做了什么?

What does LogCat do in Eclipse?

如何使用?我从来没有在Eclipse中使用过log cat,所以我不明白。

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 到你的项目。现在可以从项目中调用静态类Log来开始记录。如下所示,Logcat具有不同的日志记录级别。调试时,我们将使用Debug(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)

有关更多详细信息,请参阅 使用Eclipse调试Android

For more detail, see Debugging in Android using Eclipse.

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

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