Next: , Previous: Running Your Project In The Debugger, Up: Debugging Your Project


6.6.6.3 Breakpoints

Use a Breakpoint to specify a location in your program where execution should be paused while running in the debugger. Once execution is paused, you can examine Local Variables and their values, view the Call Stack, and continue stepping through your program line by line.

resources/breakpoint-1.png

You may set a breakpoint on any line in your source files that is Executable. A line is executable if it has a blue dot next to it in the gutter. Set the breakpoint by clicking on that line in the gutter or by clicking the Toggle Breakpoint icon in the toolbar. Once a breakpoint is set, the line will be highlighted red. Click it again to unset the breakpoint.

resources/breakpoint-2.png

To view the current list of breakpoints in your project, select Debug -> Debug Windows -> Breakpoints from the Main Menu. You can right click on an item in this list to clear that breakpoint, or optionally Clear All.