IVsDebugger2.InsertBreakpointByName 方法

粘贴到名为位置的断点处程序,如函数名。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)

语法

声明
Function InsertBreakpointByName ( _
    ByRef guidLanguage As Guid, _
    pszCodeLocationText As String, _
    bUseIntellisense As Integer _
) As Integer
int InsertBreakpointByName(
    ref Guid guidLanguage,
    string pszCodeLocationText,
    int bUseIntellisense
)

参数

  • guidLanguage
    类型:System.Guid%
    [in] 语言服务的 GUID 例如 SID_SVisualBasicLangService。
  • pszCodeLocationText
    类型:System.String
    [in] 包含位置名称字符串设置断点。
  • bUseIntellisense
    类型:System.Int32
    [in] 指定是否的布尔值使用 Intellisense,在解析断点名称时。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell80.idl:

HRESULT InsertBreakpointByName(
    [in] REFGUID guidLanguage,
    [in] LPCOLESTR pszCodeLocationText,
    [in] BOOL bUseIntellisense
);

.NET Framework 安全性

请参见

参考

IVsDebugger2 接口

Microsoft.VisualStudio.Shell.Interop 命名空间