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 Aug 18, 2020
1 parent 1f88230 commit f9c18d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs
Expand Up @@ -1646,6 +1646,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 f9c18d9

Please sign in to comment.