Understanding the state of the program's internal runtime

Source: Internet
Author: User

The way to read the source code: Any program is only in the running state, can suddenly reveal its intrinsic value. You should look at the problem from the point of view of the program, not rigidly to the source code itself.

Log output and debug source code are the best way to learn the mechanism of framework operation.

Debug Source: Add the jar file to the project's classpath, and enclose the corresponding source code for the jar files added to the classpath. Right-click the jar file, select the Properties tab, pop up the property options box for the jar file, select the Java Source Attachment option on the left side of the tab, click the button to the right of the input box, Specify the corresponding source code in the directory or the source of the jar file (zip file), click the OK button, the library file is attached to the corresponding source code (at this time, we will find the form of the jar file source code forms of Management convenience, We can even store the source code files in one of the repository directories of workspace and be referenced by all library files.

After the library file is attached to the source code, expand the library file, and double-click on the class file, you can see the corresponding source of the class file. Debug mode can be used for debugging the source code.

Understanding the state of the program's internal runtime

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.