问题
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