共用方式為


Stepping in break mode

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

The following section describes the process that occurs when the debugger is in break mode and must step through code:

Stepping process

  1. Call IDebugProgram2::Step with STEPKIND and STEPUNIT arguments to execute a step.

  2. When the step is finished, send an IDebugStepCompleteEvent2 as a stopping event.

See also