Breaking at a Location

Related Topics:

Breakpoints Breakpoint Types
Breaking in a Function

The Stop At button on the tool bar is a quick way to set a breakpoint in a line of source code.

To set a Stop At breakpoint using the tool bar:

1. Move to the line where you want the breakpoint.

2. Click the Stop At button pn the tool bar.
The line is highlighted in red to indicate the breakpoint is set.

If you know the source line number, you can use the Breakpoints Window to set a Stop At breakpoint.

To set a Stop At breakpoint using the Breakpoints window:

1. In the Debugging Window, choose Windows Breakpoints.

2. If the Details pane is not in view, click Add/Change Breakpoint (the Add/Change Breakpoint button toggles to Hide Details).

3. Choose Event At Location and type the file name and the line number in the Event text box, such as Foo.cc:21.

4. If it is not already set, choose Action Stop.

5. Click Add.
The line is highlighted in red to indicate the breakpoint is set.

If the line selected is not an executable line of source code, the debugger sets the breakpoint at the next executable line after the specified line.