Skip to content

Commit 5fdb0d7

Browse files
committed
fix(debugger): fix some small glitches when robot is terminated but the Vscode is not fast enough to notice it ;-)
1 parent aab6b6d commit 5fdb0d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: packages/debugger/src/robotcode/debugger/debugger.py

+3
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,9 @@ def evaluate(
15831583
if evaluate_context is None:
15841584
evaluate_context = EXECUTION_CONTEXTS.current
15851585

1586+
if stack_frame is None and evaluate_context is None:
1587+
return EvaluateResult(result="Unable to evaluate expression. No context available.", type="FatalError")
1588+
15861589
result: Any = None
15871590
try:
15881591
if stack_frame is not None and stack_frame.source is not None:

0 commit comments

Comments
 (0)