Partilhar via


IVsDebugger2.InsertBreakpointByName(Guid, String, Int32) Method

Definition

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

public:
 int InsertBreakpointByName(Guid % guidLanguage, System::String ^ pszCodeLocationText, int bUseIntellisense);
public int InsertBreakpointByName (ref Guid guidLanguage, string pszCodeLocationText, int bUseIntellisense);
abstract member InsertBreakpointByName : Guid * string * int -> int
Public Function InsertBreakpointByName (ByRef guidLanguage As Guid, pszCodeLocationText As String, bUseIntellisense As Integer) As Integer

Parameters

guidLanguage
Guid

[in] The GUID for the language service such as SID_SVisualBasicLangService.

pszCodeLocationText
String

[in] String containing the name of the location to set the breakpoint.

bUseIntellisense
Int32

[in] Boolean value specifying whether to use Intellisense when resolving the breakpoint name.

Returns

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  
);  

Applies to