Using SoftBench Debugger

Setting and Using Breakpoints

If another source file contains the statement , put the name of its file or procedure in the "()" input box and choose "Visit: Procedure ( )" or "Visit: File ( )".

2.Click in the Annotation Margin next to the line on which you want a breakpoint. A breakpoint annotation appears in the Annotation Margin, indicating the location of the new breakpoint.

If your source code has several executable statements on the line you select, SoftBench Debugger sets the breakpoint before the first statement on the line. You can set a breakpoint on later statements by entering the statement location (as specified in “Specifying Program Location” on page 177) in the "()" input box, and adding "+1" to specify the second statement, "+2" to specify the third, and so on. Choose "Break: Set at ( )" to set the breakpoint.

If you attempt to set a breakpoint on a specific line and the breakpoint annotation appears several statements further down in your program, this indicates that you selected a non-executable statement. SoftBench Debugger sets the breakpoint on the first executable statement following the one you selected.

Figure 7-6

"Break" Menu

Chapter 7

191