Skip to content

Commit

Permalink
Only print evaluate requests in REPL context
Browse files Browse the repository at this point in the history
This PR checks to see if the `-exec` commands are originally from the
REPL context (e.g. the Debug Console). If so, it will redirect the
output of the -exec command to the REPL window. If it is another
context, it will not print anything.
  • Loading branch information
WardenGnaw committed Aug 10, 2022
1 parent 6118510 commit b49b232
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/MIDebugEngine/Engine.Impl/Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -524,13 +524,8 @@ internal async Task Eval(uint radix, enum_EVALFLAGS dwFlags = 0, DAPEvalFlags dw
string consoleResults = null;

consoleResults = await MIDebugCommandDispatcher.ExecuteCommand(consoleCommand, _debuggedProcess, ignoreFailures: true);
Value = String.Empty;
Value = consoleResults;
this.TypeName = null;

if (!String.IsNullOrEmpty(consoleResults))
{
_debuggedProcess.WriteOutput(consoleResults);
}
}
else
{
Expand Down

0 comments on commit b49b232

Please sign in to comment.