You can control your debug execution in various ways, but they all rely on a core set of debug controls.
You can control how many steps the program runs before it suspends. Use Debug view to control your program flow.
To control a debug execution
If you run your debug session outside of Debug view, you can use either the hotkeys or the Run menu item to step through your program. You customize each perspective separately.
To enable debug hotkeys
You can control your debug session from the C/C++ Editor by having the program run until it reaches a selected line. If the program never reaches that line, the program runs until completion. You enable this option separately in each perspective. The option is enabled by default in the Debug perspective.
To enable debug execution using the C/C++ Editor
Click OK.
The controls for debug execution in the C/C++ Editor are enabled for the active perspective.
To debug using the C/C++ Editor
Right-click and click Run To Line.
The program runs until it reaches the selected line.