Using the Breakpoints Window
The Breakpoints Window lists all breakpoints currently set in your program and displays their properties. In the Breakpoints window, you can set (create) new breakpoints, delete breakpoints, enable or disable breakpoints, edit a breakpoint's properties, or find the source code corresponding to a breakpoint.
To display the Breakpoints window
- From the Debug menu, choose Windows and click Breakpoints.
Viewing Breakpoint Information
The Breakpoints window contains a list of all breakpoints currently set in your program. This list contains three columns of information by default. You can view additional information by adding more columns.
To display additional columns
- In the toolbar at the top of the Breakpoints window, click the Columns tool and select the name of the column you want to display.
To widen or narrow a column
- Click the column divider and drag the divider left or right.
To hide a column
- In the toolbar at the top of the Breakpoints window, click the Columns tool and deselect the name of the column you want to hide.
-or-
- Drag the column divider to narrow the column width to zero.
To rearrange the order of the columns
- Drag and drop the column header.
Enabling/Disabling Breakpoints
A check box appears in the Name column next to each breakpoint. The state of this check box tells you whether the breakpoint is enabled or disabled.
To enable or disable a single breakpoint
- Select or clear the check box next to that breakpoint.
Setting, Deleting, and Editing Breakpoints
To set a new breakpoint
- In the toolbar at the top of the Breakpoints window, choose the New Breakpoint icon.
- In the New Breakpoint Dialog Box, choose the type of breakpoint and the options you want.
- Click OK.
To delete a breakpoint
- In the Breakpoints window, click the breakpoint you want to delete.
- In the toolbar at the top of the window, choose the Delete tool.
To edit a breakpoint
- In the Breakpoints window, click the breakpoint you want to edit.
- In the toolbar at the top of the window, choose the Properties tool.
- In the Breakpoint Properties dialog box, choose the type of breakpoint and the options you want.
- Click OK.
Viewing The Location Of a Breakpoint
For breakpoints that are set on a source file location or memory address, you can view the breakpoint location in the source file.
To view the location of a breakpoint in the source code
- In the Breakpoints window, click the breakpoint you want to view.
- In the toolbar at the top of the window, choose the Go To Source Code tool.
For breakpoints without locations, the Go To Source Code tool is disabled.