How to filter the content printed by the System.out statement in Eclipse

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.