Using SoftBench Debugger

Setting and Using Breakpoints

specified breakpoint.

Changing Active / Suspend Status

By default, a new breakpoint is Active. If you want to deactivate a breakpoint without deleting it, you can Suspend the breakpoint. This may be useful if, for example, you want a breakpoint to occur only in certain circumstances. You could Suspend the breakpoint, proceed with debugging your program, and then re-Activatethe breakpoint as desired.

SoftBench Debugger provides several ways to change the status of a breakpoint:

Click the middle mouse button on the Breakpoint Annotation in the Annotation Margin. This toggles the breakpoint status. The Breakpoint Annotation changes to reflect the new status. A suspended breakpoint has a slash through its Breakpoint Annotation.

Modify a breakpoint (by Shift-clicking on its breakpoint symbol in the Annotation Margin, or by selecting the breakpoint in the "Breakpoint Listing" dialog box and selecting Change… ), select the "Active" or "Suspended" radio button, and select OK.

Select a breakpoint in the "Break: Show" dialog box and select the

Active or Suspend button.

Choose "Break: Suspend All" or "Break: Activate All" to activate or suspend ALL breakpoints in your program.

Changing Verbose / Silent Status

By default, SoftBench Debugger reports the address of a breakpoint in the Debugger Output Area when it occurs. You control this reporting ability by the Verbose status. If you do not want the breakpoint address reported, modify a breakpoint (by Shift-clicking on its breakpoint symbol in the Annotation Margin, or by selecting the breakpoint in the "Breakpoint Listing" dialog box and selecting Change… ), select the "Silent" radio button, and select OK. Select the "Verbose" radio button and select OK to enable address reporting.

Clearing a Breakpoint

When you no longer want your program to stop at a breakpoint, you can clear the breakpoint. If you can see the breakpoint you want to clear in

194

Chapter 7