IVsDebugger2.InsertBreakpointByName Method

Inserts a breakpoint at a named location in the program, such as a function name.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function InsertBreakpointByName ( _
    ByRef guidLanguage As Guid, _
    pszCodeLocationText As String, _
    bUseIntellisense As Integer _
) As Integer
int InsertBreakpointByName(
    ref Guid guidLanguage,
    string pszCodeLocationText,
    int bUseIntellisense
)
int InsertBreakpointByName(
    [InAttribute] Guid% guidLanguage, 
    [InAttribute] String^ pszCodeLocationText, 
    [InAttribute] int bUseIntellisense
)
abstract InsertBreakpointByName : 
        guidLanguage:Guid byref * 
        pszCodeLocationText:string * 
        bUseIntellisense:int -> int 
function InsertBreakpointByName(
    guidLanguage : Guid, 
    pszCodeLocationText : String, 
    bUseIntellisense : int
) : int

Parameters

  • guidLanguage
    Type: System.Guid%
    [in] The GUID for the language service such as SID_SVisualBasicLangService.
  • pszCodeLocationText
    Type: System.String
    [in] String containing the name of the location to set the breakpoint.
  • bUseIntellisense
    Type: System.Int32
    [in] Boolean value specifying whether to use Intellisense when resolving the breakpoint name.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

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

.NET Framework Security

See Also

Reference

IVsDebugger2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace