提交 bf77670c 编写于 作者: I isidor

debug: fix stackFrame equality matching

fixes microsoft/vscode-js-debug#455
上级 e1869c57
......@@ -381,7 +381,7 @@ export class StackFrame implements IStackFrame {
}
equals(other: IStackFrame): boolean {
return (this.name === other.name) && (other.thread === this.thread) && (other.source === this.source) && (Range.equalsRange(this.range, other.range));
return (this.name === other.name) && (other.thread === this.thread) && (this.frameId === other.frameId) && (other.source === this.source) && (Range.equalsRange(this.range, other.range));
}
}
......@@ -957,6 +957,8 @@ export class DebugModel implements IDebugModel {
for (let i = 1; i < stale.length && !bottomOfCallStackChanged; i++) {
bottomOfCallStackChanged = !stale[i].equals(current[i]);
}
console.log('bottom of call stack changed');
console.log(bottomOfCallStackChanged);
if (bottomOfCallStackChanged) {
this._onDidChangeCallStack.fire();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册