共用方式為


Execution control and state evaluation

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Debugging an application requires implementing such execution control features as stepping into functions, stopping at breakpoints, and continuing execution. Visual Studio debugging bases its execution control on events sent between debugger components.

In this section

Program control Lists the following routines that occur at the program level: setting the next statement, executing, stepping, continuing, suspending, and resuming.

Breakpoint-related methods Defines the bound and pending types of breakpoints that Visual Studio supports.

Call stack evaluation Discusses implementation of the methods that allow viewing of the stack frames of the call stack during break mode.

Expression evaluation Explains how the debug engine (DE), expression evaluation (EE), and session debug manager are involved in the parsing and evaluation of an expression entered into one of the windows of the IDE.

Control events Discusses the interface used to send events during the controlled execution of the program.