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

问题描述

在Android中使用简单的程序时,我错误地关闭了LogCat窗口,并且想知道如何再次显示。

解决方案

在Eclipse中,Goto Window->显示视图 - >其他 - > Android-> Logcat。



Logcat只不过是模拟器或设备的控制台。 / p>

System.out.println 在Android中不起作用。所以你必须处理Logcat中的每一件事情。更多信息请查看此。



编辑1:System.out.println正在处理Logcat。如果您使用该标签将像System.out和Message将是您的消息。


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

解决方案

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

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

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

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中为Android启用LogCat / Console?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 04:13
查看更多