| |||
| Home > Setting Breakpoints > Setting a simple breakpoint > Setting a breakpoint with the Simple Break if X dialog box | |||
To set a breakpoint with the Simple Break if X dialog box:
Right-click on the margin, an instruction, or a line of source code in the File Editor pane to display the context menu.
Select Set BreakIf... from the context menu.
A List Selection dialog box is displayed.
Select Break if X... from the List Selection dialog box.
Click OK.
The Simple Break if X dialog box is displayed (see Figure 10.3).
The address expression where you performed the right-click is inserted.
For example, if you right-clicked on the Proc_1 function
call, then Proc_1 is inserted as the address
expression. You can change this if required.
Select the breakpoint type for this breakpoint. The options are:
SW Instr
HW Instr
HW Access
HW Read
HW Write.
Enter the address expression for the breakpoint, or leave the expression to that specified if required.
This can be:
a specific line number in the source code, with or without a module name prefix (see Qualifying breakpoint line number references with module names)
a specific address, which can be the address of a variable or function, or an address returned from a macro
an address range (see Specifying address ranges)
a function entry point (see Setting a breakpoint at the entry point to a function).
Alternatively,
click the expression selector button, to select from:
various lists, including your Favorites List
expressions used in previous breakpoints during this session.
Click OK to set the breakpoint and close the dialog box.