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
'宣言
Function InsertBreakpointByName ( _
ByRef guidLanguage As Guid, _
pszCodeLocationText As String, _
bUseIntellisense As Integer _
) As Integer
'使用
Dim instance As IVsDebugger2
Dim guidLanguage As Guid
Dim pszCodeLocationText As String
Dim bUseIntellisense As Integer
Dim returnValue As Integer
returnValue = instance.InsertBreakpointByName(guidLanguage, _
pszCodeLocationText, bUseIntellisense)
int InsertBreakpointByName(
ref Guid guidLanguage,
string pszCodeLocationText,
int bUseIntellisense
)
int InsertBreakpointByName(
[InAttribute] Guid% guidLanguage,
[InAttribute] String^ pszCodeLocationText,
[InAttribute] int bUseIntellisense
)
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
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.