提交 7293d498 编写于 作者: I isidor

debug: aslo invalitdate variable children cache on set variable

上级 47ce9a30
......@@ -104,13 +104,22 @@ export class ExpressionContainer implements IExpressionContainer {
constructor(
protected process: IProcess,
public reference: number,
private _reference: number,
private id: string,
public namedVariables = 0,
public indexedVariables = 0,
private startOfVariables = 0
) { }
public get reference(): number {
return this._reference;
}
public set reference(value: number) {
this._reference = value;
this.children = undefined; // invalidate children cache
}
public getChildren(): TPromise<IExpression[]> {
if (!this.children) {
this.children = this.doGetChildren();
......@@ -218,7 +227,6 @@ export class Expression extends ExpressionContainer implements IExpression {
}
this.process = process;
this.children = undefined; // invalidate children cache
return process.session.evaluate({
expression: this.name,
frameId: stackFrame ? stackFrame.frameId : undefined,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册