Objective
This part is the most important part of Eclipse. The importance of commissioning must be clear to all.
Commissioning is undoubtedly the most difficult thing to do the project, but good coding habits, good debugging methods can make this not so bitter, and even a little fun:).
This article explains how to debug a Java program using Eclipse.
Debugging basic Steps
1. Double-click the set breakpoint on the left side of the code line
2. Click on the top of the bug's mark to start debugging and enter the Debug interface:
3. The following shortcut keys can be debugged step-by:
F5: Step by Step debugging, encountered method entered.
F6: Step by Step debugging, encountered the method to run directly completed.
F7: Runs directly through the current method.
F8: Restarts debugging and runs to the current breakpoint.
4. You can right-click on a variable to focus on, then watch to open the Variable Watch window:
Summary
These are just the most basic debugging techniques.
The more complex the project, the more advanced the debugging methods you need to use, all of which need to be learned slowly in future projects.
At this point, the Java basics is over. If the individual has the development needs later, it will be written into the next step, more in-depth study of the language.
Basic tips for debugging Eclipse Java