Share via


IDebugVsaScriptCodeItem.ParseNamedBreakPoint 方法

定义

在类中实现时,分析字符串并返回分析出的信息。 此方法通常由调试器调用,满足其分析有关断点的信息的需要,该断点表示为 string。 调试器中可能存在用户以 functionname-arguments-ILoffset 形式键入的断点。 命名断点字符串可以具有复杂的格式,例如, F.B(C.D[], int, arg : double ) : C.Abc + 123. 参数列表是可选的,IL 偏移量也是可选的。

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

input
String

一个格式良好的命名断点字符串,它提供函数、可选参数列表以及可选 IL 偏移量。

functionName
String

输出参数,它返回从输入字符串分析出的函数名称,或在输入参数格式不良时返回空字符串。

nargs
Int32

输出参数,它返回可选参数列表中的参数数目。 如果没有参数列表或如果字符串格式不良,则返回零。

arguments
String

输出参数,它返回参数列表中所有参数的类型名称的列表(用空格分隔),或在缺少参数列表或输入字符串格式不良时返回空字符串。

returnType
String

输出参数,它返回一个字符串(该字符串包含在输入中命名的函数的返回类型),或在缺少返回类型或输入字符串格式不良好时返回空字符串。

offset
UInt64

无符号长整型数,它给出输入字符串的 IL 偏移量,或在没有 IL 偏移量或字符串格式不良时给出零。

返回

如果成功地分析了命名的断点,则返回 true;否则,返回 false

适用于