提交 ed7a9733 编写于 作者: I isidor

debug: do not allow watch expression and hover evaluation while not stopped

fixes #21524
上级 4c5a468b
......@@ -197,7 +197,7 @@ export class Expression extends ExpressionContainer implements debug.IExpression
}
public evaluate(process: debug.IProcess, stackFrame: debug.IStackFrame, context: string): TPromise<void> {
if (!process) {
if (!process || (!stackFrame && context !== 'repl')) {
this.value = context === 'repl' ? nls.localize('startDebugFirst', "Please start a debug session to evaluate") : Expression.DEFAULT_VALUE;
this.available = false;
this.reference = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册