提交 604e0d3b 编写于 作者: A Andre Weinand

debug protocol: add optional 'type' attribute

上级 c1229a7c
......@@ -728,15 +728,21 @@ declare module DebugProtocol {
}
/** A Variable is a name/value pair.
Optionally a variable can have a 'type' that is shown if space permits or when hovering over the variable's name.
An optional 'kind' is used to render additional properties of the variable, e.g. different icons can be used to indicate that a variable is public or private.
If the value is structured (has children), a handle is provided to retrieve the children with the VariablesRequest.
*/
export interface Variable {
/** The variable's name */
/** The variable's name. */
name: string;
/** The variable's type. */
type?: string;
/** The variable's value. For structured objects this can be a multi line text, e.g. for a function the body of a function. */
value: string;
/** If variablesReference is > 0, the variable is structured and its children can be retrieved by passing variablesReference to the VariablesRequest. */
variablesReference: number;
/** Properties of a variable that can be used to determine how to render the variable in the UI. Format of the string value: TBD. */
kind?: string;
}
/** Properties of a breakpoint passed to the setBreakpoints request.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册