Starting Execution
This documentation is archived and is not being maintained.

Starting Execution

To start debugging

  • From the Debug menu, choose Start, Step Into, or Step Over.


  • Right-click in the source window and choose Run to Cursor from the shortcut menu.

If you choose Start, your application starts up and runs until it reaches a breakpoint. You can break execution at any time to examine values, modify variables, and otherwise examine the state of your program. For more information, see Breaking Execution.

If you choose Step Into or Step Over, your application starts and executes then breaks on the first line.

If you choose Run to Cursor, your application starts and runs until it reaches a breakpoint or the cursor location, whichever comes first. You can set the cursor location in a source window. In some cases, a break does not occur. This means that execution never reached the code where the cursor is set.

Your solution may contain more than one project. In that case, you can choose the startup project that will be launched by the Debug menu execution commands. Alternately, you can start a selected project to start from Solution Explorer.

Note   You can use the Start without debugging command (on the Debug menu) to start execution of a project without the debugger.

See Also

Execution Control | Debug Settings and Preparation | Choosing the Startup Project | Starting Execution of a Selected Project

© 2016 Microsoft