| |||
| Home > Setting Breakpoints > Setting breakpoints by dragging and dropping | |||
You can set breakpoints by dragging and dropping program items from your source code onto the Break/Tracepoints view.
To set a breakpoint by dragging and dropping a program item:
Select Break/Tracepoints from the View menu to display the Break/Tracepoints view. Figure 11.18 shows an example:
Locate the program item in your source code, such
as a function call. Figure 11.19 shows an
example source code view for the dhrystone.axf image.
Double-click on the program item to highlight it.
In the example shown in Figure 11.19, double-click on the Proc_1 function
name.
Drag the item and drop it onto the Break/Tracepoints view. The breakpoint type selection dialog box is displayed. Figure 11.20 shows an example:
Select the breakpoint type you want to set. The available options depend on the target:
Break if X... displays the Simple Break if X dialog box
Break if X, N Times... displays the Simple Break if X, N Times dialog box
Break if X, when Y is True... displays the Simple Break if X, when Y is True dialog box
HW Break if in Range... displays the HW Break if in Range dialog box
HW While in func/range, Break if X... displays the HW While in func/range, Break if X dialog box
HW Break if X, then if Y... displays the HW Break if X, then if Y dialog box.
HW Break on Data Value match... displays the HW Break on Data Value match dialog box.
In this example, leave the default type selected, that is Break if X....
In the dialog box that is displayed, modify the
breakpoint parameters as required. In this example, change the type
of breakpoint from HW Instr to SW Instr in
the Simple Break if X dialog box.
Click OK to set the breakpoint and close the dialog box.
In this example, a software breakpoint is set at the start
of the function Proc_1.
See also: