Commissioning | Debugging in Java

Source: Internet
Author: User

In the process of summarizing Java knowledge, the previous article mentioned that Javadoc can extract the comment information in the file, but because some environment variables in the CLASSPATH do not need to set, it is deleted, the cmd command can be extracted from the Java file information. But I tried it in Eclipse, but there was a similar problem. Review the Code debugging (server-side) and web-debugging (client) in eclipse today, because it's actually working, so just write about it.

1. Code debug Mode (1)(console print) 1. Server System.out.println ();  Eclipse2. Client Console.log (); A JavaScript breakpoint is a magical point that allows the program to stay on the line and wait for debugging. (It's like adding a slow motion to a movie)1.1 Service-side breakpoint debugging:1. Add a breakpoint (double-click the line number, or right-click [Toggle Breakpoint]) 2 on the row number. Start Debugging (test code) (execute the Main method, debug as Java appication) (Execute JUnit test method, JUnit Test) 3. Tracking code (F6 the next line, F5 the method of entering the row, F8 cancel this debug) 4. Display the value of the variable (select the variable, right-click Watch, or Inspect) 5. Remove Breakpoint1.2 Client breakpoint debugging:1. Add a breakpoint (click on the line number or right-click on the Add breakpoint on the row number). 2. Start debugging (the function on the direct Operation page) 3. Tracking code (F10 next line, F11 into the bank,) 4. View variable 5. Remove Breakpoint

Commissioning | Debugging in Java

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.