In This Book

 

 

 

Setting Breakpoints

 

Set breakp oints on lines in your code where you want execution to stop.

 

When a breakpoint is set, a circled B symbol symbol appears next to the line

3

number in the annotation margin.

 

The target program stops just prior to the execution of the statemen t on which you have set a breakpoint. Each time execution stops at a breakpoint, the debugger output area displays the line number of the next statement that will execute.

Using the Mouse

Perhaps the easiest method for manipulating breakpoints is to use the mouse as follows:

Click the left mouse button on a line number to set a new breakpoint. The circled B breakpoint symbol appears.

Click the left mouse button on a breakpoint symbol to delete an existing breakpoint. The breakpoint symbol disappears.

Click the middle mouse button on a breakp oint symbol to suspend it. The breakpoint symbol is redisplayed with a slash through it.

Click the middle mouse button on a suspended breakpoint to activate it. The slash in the breakpoint symbol disappears.

Press 4Shift5 and click the left mouse button on a line number to invoke the Breakpoint Set/Change dialog box. The dialog box allows you to set various attributes for breakpoints.

Using the breakpoint Command

The breakpoint command allows greater ￿exibility than the mouse in both setting and in customizing breakpoin ts. The following sections indicate some of that ￿exibility. See the online command reference for more information.

Using Monitors (Breakpoints, Watchpoints, Traces, and Intercepts) 3-3