First display the Log Cat tab in Eclipse, and if not, you can use the following method to display: Click Eclipse's Menu "window"--Show View-click "LogCat" if show You can choose "other" if not found in the view:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/48/49/wKioL1QGu-TRI7W7AAI2Zl0Bke8333.jpg "title=" 1.jpg " alt= "Wkiol1qgu-tri7w7aai2zl0bke8333.jpg"/>
Figure 1
In the "Android" directory there is Logcat, select Logcat and click on the "OK" button below, you can see the Logcat tab below Eclipse (Figure 3).
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/48/49/wKioL1QGvCyyDcKEAAFer89vsB8201.jpg "title=" 2.jpg " alt= "Wkiol1qgvcyydckeaafer89vsb8201.jpg"/>
Figure 2
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/48/47/wKiom1QGvMvD_qzhAAHekXMQvDM026.jpg "title=" 3.jpg " alt= "Wkiom1qgvmvd_qzhaahekxmqvdm026.jpg"/>
Figure 3
Then click on the Green "+" symbol on the left side of the Logcat tab and a dialog box will pop up, enter "System.out" in the box after "Filter Name:" In the dialog box, and enter "System.out" in the box after "by Log Tag:"
, note that the input is in English characters, including "." is also in English (Figure 4).
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/48/48/wKiom1QGvgLyc9dPAAFFYLua2b4717.jpg "title=" 4.jpg " alt= "Wkiom1qgvglyc9dpaaffylua2b4717.jpg"/>
Figure 4
Test effect: Add a print statement to your project, and then run the emulator to see the changes under the Logcat tab:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/48/48/wKiom1QGvrrzBBVLAAFSzk_AGLk859.jpg "title=" 5.png " alt= "Wkiom1qgvrrzbbvlaafszk_aglk859.jpg"/>
Figure 5
This article is from the "Heart Fly" blog, please be sure to keep this source http://weiweili.blog.51cto.com/6675651/1548321
How to filter the content printed by the System.out statement in Eclipse