提交 30cc9b32 编写于 作者: I isidor

debug: Evaluate all watch expressions when changing variable value

 #8118
上级 c81c436f
......@@ -495,7 +495,11 @@ export class DebugService implements debug.IDebugService {
name: variable.name,
value,
variablesReference: (<model.Variable>variable).parent.reference
}).then(response => variable.value = response.body.value, err => (<model.Variable>variable).errorMessage = err.message);
}).then(response => {
variable.value = response.body.value;
// Evaluate all watch expressions again since changing variable value might have changed some #8118.
return this.setFocusedStackFrameAndEvaluate(this.viewModel.getFocusedStackFrame());
}, err => (<model.Variable>variable).errorMessage = err.message);
}
public addWatchExpression(name: string): TPromise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册