Breakpoints are how you pause your C++ program to temporarily stop the code from running, and have a chance to analyze and inspect your program's operation. You can peer at variables, step through code, and change variable values.
Breakpoints and stepping through code
Getting ready
Breakpoints are easy to set in Visual Studio. All you have to do is press F9 on the line of code where you want the operation to pause, or click in the gray margin to the left of the line of code where you want the operation to pause. The code will pause when the operation reaches the line indicated.