The New Breakpoint dialog box opens when you choose the New Breakpoint command from the Debug menu or the New Breakpoint tool from the Breakpoints window. With this dialog box, you can create a new breakpoint of any type, such as function, file, address, or data.
This dialog box contains four tabs, each of which contains controls for setting a specific type of breakpoint. The following table shows the tabs in the New Breakpoint dialog box.
To | See |
---|---|
Set a breakpoint on a function at the beginning of the function or at an offset from the beginning | Function, New Breakpoint Dialog Box |
Set a breakpoint at a specific location within a specified file | File, New Breakpoint Dialog Box |
Set a breakpoint at a specific memory location | Address, New Breakpoint Dialog Box |
Set a breakpoint on a variable | Data, New Breakpoint Dialog Box |
Below the tabs, you will see the following buttons:
Condition
By default, execution of your program breaks every time the breakpoint is hit. If you choose this button, you can specify a condition that will be tested each time the breakpoint is hit. If the condition is satisfied, your program breaks. Otherwise, execution continues.
Hit Count
By default, execution of your program breaks every time the breakpoint is hit. Choose this button if you want execution to break on a specified hit count instead.