提交 fca77122 编写于 作者: I isidor

debug: do not send evaluate requests for expressions with no name

fixes #42291
上级 0cc6b4a3
......@@ -213,7 +213,8 @@ class WatchExpressionsDataSource implements IDataSource {
public getChildren(tree: ITree, element: any): TPromise<any> {
if (element instanceof Model) {
const viewModel = this.debugService.getViewModel();
return TPromise.join(element.getWatchExpressions().map(we => we.evaluate(viewModel.focusedProcess, viewModel.focusedStackFrame, 'watch').then(() => we)));
return TPromise.join(element.getWatchExpressions().map(we =>
we.name ? we.evaluate(viewModel.focusedProcess, viewModel.focusedStackFrame, 'watch').then(() => we) : TPromise.as(we)));
}
let expression = <Expression>element;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册