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

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

问题描述

在 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 中,转到窗口->显示视图 ->其他 ->安卓->日志.

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,而 Message 将成为您的消息.

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.

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

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