IDebugVsaScriptCodeItem.ParseNamedBreakPoint Method

Definition

When implemented in a class, parses strings and returns the parsed-out information. This method is typically called by a debugger that needs to parse information about a breakpoint that is represented as a string. The debugger might have a breakpoint typed in by the user in the form functionname-arguments-ILoffset. A named breakpoint string can have a complex format, for example, F.B(C.D[], int, arg : double ) : C.Abc + 123. The parameter list is optional, as is the IL offset.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 bool ParseNamedBreakPoint(System::String ^ input, [Runtime::InteropServices::Out] System::String ^ % functionName, [Runtime::InteropServices::Out] int % nargs, [Runtime::InteropServices::Out] System::String ^ % arguments, [Runtime::InteropServices::Out] System::String ^ % returnType, [Runtime::InteropServices::Out] System::UInt64 % offset);
public bool ParseNamedBreakPoint (string input, out string functionName, out int nargs, out string arguments, out string returnType, out ulong offset);
abstract member ParseNamedBreakPoint : string * string * int * string * string * uint64 -> bool
Public Function ParseNamedBreakPoint (input As String, ByRef functionName As String, ByRef nargs As Integer, ByRef arguments As String, ByRef returnType As String, ByRef offset As ULong) As Boolean

Parameters

input
String

A well-formed named breakpoint string giving a function, optional argument list, and optional IL offset.

functionName
String

Out parameter returning the name of the function parsed out of the input string, or the empty string if the input string is not well formed.

nargs
Int32

Out parameter returning the number of arguments in the optional argument list. Returns zero if there is no arguments list or if the string is not well formed.

arguments
String

Out parameter returning a space-separated list of the names of the types of all the arguments in the arguments list, or an empty string if the arguments list was missing or the input string was not well formed.

returnType
String

Out parameter returning a string containing the return type of the function named in the input, or the empty string if the return type was missing or the input string was not well formed.

offset
UInt64

Unsigned long integer giving the IL offset from the input string, or zero if there was no IL offset or the string was not well formed.

Returns

true if the named breakpoint is successfully parsed; otherwise, false.

Applies to