问题描述
在 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!