# How to set a Visual Studio breakpoint to pause execution of your program at that point
To set a breakpoint, first decide which executable line of code you want the program to stop on 'Before' that line of code is executed.
Set the cursor flashing anywhere on that line.
Press [F9] to set the breakpoint, and a red circle appears on the far left.
Press [F5] to run program.
To close the program, click on the program window so that it is your active window, and press [Ctrl]+[Pause].
To disable the breakpoint, but not delete it, set your cursor flashing on that line again, and press [Ctrl]+[F9], which turns the circle white. (Or Right-click the red circle, and click "Disable Breakpoint")
To delete the breakpoint, Right-click the red circle, and click "Delete Breakpoint".
Using the mouse as an alternative way to set, disable, or delete breakpoints
Once you know where the breakpoints show up on the left side of the Visual Studio window, you can set a breakpoint by double-clicking at the point where you want the breakpoint to be placed, and it will be placed there.
If you double-click a red breakpoint, it will be removed.
If you hover your mouse pointer on a breakpoint, two little icons appear slightly above, and to the right of the breakpoint.
Clicking that right-side icon toggles the breakpoint from active to disabled, and vice-versa.
For many more details, see the topic:
"Getting Started with the Debugger"
https://msdn.microsoft.com/en-us/library/mt243867.aspx
Also, see the left column on the page from the link above for the additional pages:
"Navigating through Code with the Debugger"
https://msdn.microsoft.com/en-us/library/y740d9d3.aspx
"Using Breakpoints"
https://msdn.microsoft.com/en-us/library/5557y8b4.aspx
Video: And for a 5-minute introductory video, see:
"Debugging in VS Code"
https://code.visualstudio.com/docs/introvideos/debugging