diff --git a/src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs b/src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs index b3e39d58d..3283ab65b 100755 --- a/src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs +++ b/src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs @@ -571,7 +571,6 @@ public async Task Initialize(HostWaitLoop waitLoop, CancellationToken token) try { - await this.MICommandFactory.EnableTargetAsyncOption(); List commands = await GetInitializeCommands(); _childProcessHandler?.Enable(); @@ -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; }