Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Starting Execution

To start debugging

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

    -or-

  • 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

Show:
© 2015 Microsoft