Before you begin, you must complete Exercise 5.2: Starting the integrated debugger.
You can only set breakpoints at executable lines. All executables lines are displayed in blue. One way to set a breakpoint is to right-click on the line in the Source view.
To set a breakpoint:
A dot with a checkmark in the prefix area indicates that a breakpoint has been set for that line. The prefix area is the small grey margin to the left of the source lines.
Now you add a conditional breakpoint to stop in the loop when it loops the 99th time.
Adding a conditional breakpoint
To add a conditional breakpoint:
The Breakpoints view opens.
The Edit a Line Breakpoint window opens.
You only want to stop in the loop when it executes for the 99th time or more. You can do that by setting the From field of the Frequency group to 99.
You have added a breakpoint including a conditional breakpoint to your source and now you are ready to begin Exercise 5.4: Monitoring variables.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.