提交 25438168 编写于 作者: I isidor

debug: in case of an error when retrieving scopes return [].

fixes #30
上级 c79f7723
......@@ -217,7 +217,7 @@ export class StackFrame implements debug.IStackFrame {
if (!this.scopes) {
this.scopes = debugService.getActiveSession().scopes({ frameId: this.frameId }).then(response => {
return response.body.scopes.map(rs => new Scope(this.threadId, rs.name, rs.variablesReference, rs.expensive));
});
}, err => []);
}
return this.scopes;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册