如何启用LogCat中/控制台在Eclipse中为Android? [英] How to enable LogCat/Console in Eclipse for Android?

查看:384
本文介绍了如何启用LogCat中/控制台在Eclipse中为Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然工作在Android的一个简单的程序,我错误地关闭LogCat中的窗口,我想知道如何再次显示。

While working on a simple program in Android, I mistakenly closed LogCat window and I want to know how to show it again.

推荐答案

在Eclipse中,转到窗口 - >显示视图 - >其他 - > Android->的logcat

In Eclipse, Goto Window-> Show View -> Other -> Android-> Logcat.

logcat的是什么,但你的模拟器或设备的控制台。

Logcat is nothing but a console of your Emulator or Device.

的System.out.println 不能在Android的工作。所以,你必须处理在logcat中的每一件事情。更多信息请留意本文档

System.out.println does not work in Android. So you have to handle every thing in Logcat. More Info Look out this Documentation.

编辑1:的System.out.println正在logcat的。如果您使用该标签会像System.out和信息将成为您的消息。

Edit 1: System.out.println is working on Logcat. If you use that the Tag will be like System.out and Message will be your message.

这篇关于如何启用LogCat中/控制台在Eclipse中为Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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