Skip to content

Commit

Permalink
move EnableTargetAsyncOption
Browse files Browse the repository at this point in the history
this should work now, see #794
  • Loading branch information
Trass3r committed Aug 28, 2020
1 parent a38d0b6 commit 6482b1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ public async Task Initialize(HostWaitLoop waitLoop, CancellationToken token)

try
{
await this.MICommandFactory.EnableTargetAsyncOption();
List<LaunchCommand> commands = await GetInitializeCommands();
_childProcessHandler?.Enable();

Expand Down Expand Up @@ -620,6 +619,8 @@ public async Task Initialize(HostWaitLoop waitLoop, CancellationToken token)
}
// now the exe is loaded and we can check target features
TargetFeatures = await MICommandFactory.GetTargetFeatures();
if (TargetFeatures.Contains("async"))
await MICommandFactory.EnableTargetAsyncOption();

success = true;
}
Expand Down

0 comments on commit 6482b1b

Please sign in to comment.