Setting breakpoints

Now, let's set breakpoints in the code before we launch the CourseManagement application. Open CourseDAO from the CourseManagementJDBC project and double-click in the left margin of the first line in the getCourses method:

Figure 6.3: Setting a breakpoint

Another way to set a breakpoint at a line is to right-click in the left margin and select Toggle Breakpoint:

Figure 6.4: Toggling breakpoints using the menu

You can also set breakpoints at the method level. Just place the caret inside any method, and select the Run |

Get Java EE 8 Development with Eclipse now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.