Skip to content

Commit

Permalink
POC show function return value when stepping over return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Jul 15, 2021
1 parent 01d5ff2 commit ec5a93e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs
Expand Up @@ -1655,6 +1655,12 @@ public async Task Step(int threadId, enum_STEPKIND kind, enum_STEPUNIT unit)
await MICommandFactory.ExecStep(threadId);
break;
case enum_STEPKIND.STEP_OVER:
string line = await ConsoleCmdAsync("f", false, true);
if (line.Contains("return "))
{
await MICommandFactory.ExecFinish(threadId);
break;
}
await MICommandFactory.ExecNext(threadId);
break;
case enum_STEPKIND.STEP_OUT:
Expand Down

0 comments on commit ec5a93e

Please sign in to comment.