where can I get logcat [closed]

删除回忆录丶 提交于 2019-12-13 09:56:31

问题


I downloaded the combined Eclipse/ Android SDK a couple of weeks ago. I really need logging capability and I was disappointed that System.out.println() doesn't write to the console. After researching the problem, I read that I need to use LogCat to read my logs. Unfortunately I can't find LogCat in my SDK or anywhere else on my hard drive. I searched the Internet and didn't find it.

Please help.


回答1:


Two way to open logcat window..

1)first shortcut

2)Via Menu

window => Show View => select other... => search logcat 



回答2:


in eclipse

window-->showview-->logcat

if logcat is not directly present, then

window-->showview-->others(then select logcaqt there)

HTH :)




回答3:


In Eclipse you can find Logcat here

Eclipse->Window->showview->Logcat

If you don't find logcat option here choose it from other option

For command line

goto android-sdk/platform-tools/

adb logcat




回答4:


Unfortunately I can't find LogCat in my SDK or anywhere else on my hard drive.

=> FYI, Logcat is not a platform tool but a part of ADB.

As you have downloaded ADT Bundle Windows, you can find out ADB inside platform-tools folder:

\adt-bundle-windows\sdk\platform-tools

Yes if you want to see Logcat output on console, then type adb logcat at console having above path.




回答5:


you can find Logcat in Eclipse here :

Window -> Show View -> Other -> Android -> Logcat



来源:https://stackoverflow.com/questions/14108360/where-can-i-get-logcat

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!