Skip to content

Commit d840528

Browse files
authored
Merge pull request #438 from oltolm/evaluateRequest_fix
prevent error in evaluateRequest when a variable is not found
2 parents ab2ffff + 8403fb5 commit d840528

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Versioning].
2020
([@GitMensch])
2121
- New `frameFilters` option for GDB that allows using custom frame filters,
2222
enabled by default ([@JacquesLucke])
23+
- Suppress error for hover as the user may just play with the mouse ([@oltolm]).
2324

2425
## [0.27.0] - 2024-02-07
2526

src/mibase.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,12 @@ export class MI2DebugSession extends DebugSession {
715715
};
716716
this.sendResponse(response);
717717
}, msg => {
718-
this.sendErrorResponse(response, 7, msg.toString());
718+
if (args.context == "hover") {
719+
// suppress error for hover as the user may just play with the mouse
720+
this.sendResponse(response);
721+
} else {
722+
this.sendErrorResponse(response, 7, msg.toString());
723+
}
719724
});
720725
} else {
721726
this.miDebugger.sendUserInput(args.expression, threadId, level).then(output => {

0 commit comments

Comments
 (0)