Debugging with the Eclipse IDE

To debug a Java class using the Eclipse IDE, you must create a breakpoint. It can be made by simply double-clicking near the line number (a blue round will be displayed). Then, when you click on the debug button to run the debugging process, the execution of the class will stop right on the line marked with the breakpoint, and you may type the following keys on the keyboard:

  • F5: This is used to step into a method
  • F6: This is used to step over a method
  • F7: This is used to step return
  • F8: This is used to resume debugging
  • Ctrl + F2: This is used to terminate the debug

The following screenshot shows the Eclipse debug screen. There is an important section in this screen on the right-top corner named Variables that shows the variables and its respective current values.

Debugging with the Eclipse IDE
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset