How to enable LogCat/Console in Eclipse for Androi

2018-12-31 12:05发布

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

5条回答
唯独是你
2楼-- · 2018-12-31 12:38

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.

查看更多
何处买醉
3楼-- · 2018-12-31 12:38

Go to your desired perspective. Go to 'Window->show view' menu.

If you see logcat there, click it and you are done.

Else, click on 'other' (at the bottom), chose 'Android'->logcat.

Hope that helps :-)

查看更多
其实,你不懂
4楼-- · 2018-12-31 12:42

In the "Window" menu, open "Open Perspective" -> "Debug".

alt text click On the plus image icon(you see the below image at status bar), and then select "Logcat"....

查看更多
倾城一夜雪
5楼-- · 2018-12-31 12:45

Write "LogCat" in Quick Access edit box in your eclipse window (top right corner, just before Open Prospective button). And just select LogCat it will open-up the LogCat window in your current prospect

enter image description here

查看更多
倾城一夜雪
6楼-- · 2018-12-31 12:54

In the Window menu, open Show View -> Other ... and type log to find it.

查看更多
登录 后发表回答