Skip to content

Commit

Permalink
Merge pull request #438 from oltolm/evaluateRequest_fix
Browse files Browse the repository at this point in the history
prevent error in evaluateRequest when a variable is not found
  • Loading branch information
GitMensch committed Sep 14, 2024
2 parents ab2ffff + 8403fb5 commit d840528
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Versioning].
([@GitMensch])
- New `frameFilters` option for GDB that allows using custom frame filters,
enabled by default ([@JacquesLucke])
- Suppress error for hover as the user may just play with the mouse ([@oltolm]).

## [0.27.0] - 2024-02-07

Expand Down
7 changes: 6 additions & 1 deletion src/mibase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,12 @@ export class MI2DebugSession extends DebugSession {
};
this.sendResponse(response);
}, msg => {
this.sendErrorResponse(response, 7, msg.toString());
if (args.context == "hover") {
// suppress error for hover as the user may just play with the mouse
this.sendResponse(response);
} else {
this.sendErrorResponse(response, 7, msg.toString());
}
});
} else {
this.miDebugger.sendUserInput(args.expression, threadId, level).then(output => {
Expand Down

0 comments on commit d840528

Please sign in to comment.