提交 4c0676ab 编写于 作者: I isidor

Set variable value: on error do not restore original value if error box is open

fixes #8055
上级 31a33120
......@@ -499,7 +499,11 @@ export class DebugService implements debug.IDebugService {
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);
}, err => {
(<model.Variable>variable).errorMessage = err.message;
// On error still show bad value so the user can fix it #8055
(<model.Variable>variable).value = value;
});
}
public addWatchExpression(name: string): TPromise<void> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册