Debugger3.StepInto 方法

如果可能,单步执行下一个函数调用。

命名空间:  EnvDTE90
程序集:  EnvDTE90(在 EnvDTE90.dll 中)

语法

声明
Sub StepInto ( _
    WaitForBreakOrEnd As Boolean _
)
void StepInto(
    bool WaitForBreakOrEnd
)
void StepInto(
    [InAttribute] bool WaitForBreakOrEnd
)
abstract StepInto : 
        WaitForBreakOrEnd:bool -> unit
function StepInto(
    WaitForBreakOrEnd : boolean
)

参数

  • WaitForBreakOrEnd
    类型:Boolean

    如果此函数调用应等待至进入中断模式或设计模式后才返回,则设置为 true。 如果希望此调用在导致调试器开始执行之后立刻返回,则设置为 false。 返回时,调试器可以为设计、中断或运行模式。

备注

有关详细信息,请参阅<PAVEOVER> 代码单步执行概述

示例

下面的示例演示如何使用 StepInto 方法。

若要测试此方法,请执行下列操作:

  1. 在目标应用程序中的函数调用上设置一个断点。

  2. 以调试模式运行目标应用程序。

  3. 当此应用程序停在该断点处时,运行外接程序。

public static void StepInto(EnvDTE80.DTE2 dte)
{
    EnvDTE90.Debugger3 debugger = (EnvDTE90.Debugger3)dte.Debugger;
    debugger.StepInto(true);
}
Sub StepIntoAndNotify
    DTE2.Debugger.StepInto(True)
    MsgBox("The debugger stepped into the function.")
End Sub

.NET Framework 安全性

请参阅

参考

Debugger3 接口

EnvDTE90 命名空间