You can control how your program executes by setting breakpoints. A breakpoint stops the execution of your program at a specific location or when a specific event occurs.
To set breakpoints, select the Breakpoints menu from the Debug Session Control window or from any of the source windows and select the appropriate choice for the type of breakpoint you want to set. You can also set a simple line breakpoint by double-clicking in the prefix area of an executable statement in any of the source windows. The prefix area is the area to the left of the source code where line numbers or addresses are displayed. The prefix area turns red indicating that the breakpoint has been set. You can also use the arrow keys to move the cursor to the prefix area and then use the space bar to toggle the breakpoints. This allows you to set or delete a breakpoint.
Refer to Breakpoints Menu Choices for more information on breakpoints.