Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent error in evaluateRequest when a variable is not found #438

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading