| |||
| Home > Working with Breakpoints > Setting breakpoints quickly > Quick breakpoints in source-level view | |||
Double-click in the gray area to the left of a line to set a breakpoint quickly, shown in Figure 5.2. You can also double-click on the line number if this is visible.
This sets a simple breakpoint marked by a red disc in the margin.
If you want to set a breakpoint on a symbol, right-click on the symbol to display the context menu, shown in Figure 5.3, and select Set Break On.
If you want to set a breakpoint on a multi-statement line, for
example on the for... loop, right-click on the
statement to display the context menu shown in Figure 5.3, and select Set
Break on Statement.
Setting a breakpoint updates the Break/Tracepoints pane, if it is visible, and the Output pane shows the breakpoint command, for example:
bi \DHRY_1\ #146:3
Setting breakpoints in source-level view inserts a software instruction breakpoint by default. This is set using a BREAKINSTRUCTION command. RealView Debugger attempts to set a software breakpoint where the code is not in ROM.
If your code is in ROM, RealView Debugger sets a hardware breakpoint where one is available. An error message is displayed if no such breakpoint is available.
See Using the Break/Tracepoints pane for details on viewing breakpoints in the Break/Tracepoints pane.