Skip to content

Commit 6b2d9f1

Browse files
committed
move EnableTargetAsyncOption
this should work now, see #794
1 parent 6c1d644 commit 6b2d9f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,6 @@ public async Task Initialize(HostWaitLoop waitLoop, CancellationToken token)
571571

572572
try
573573
{
574-
await this.MICommandFactory.EnableTargetAsyncOption();
575574
List<LaunchCommand> commands = await GetInitializeCommands();
576575
_childProcessHandler?.Enable();
577576

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

624625
success = true;
625626
}

0 commit comments

Comments
 (0)