From 6b2d9f15cbcb86f14ddc9b0d2ad063a0b37c9d77 Mon Sep 17 00:00:00 2001 From: Andreas Hollandt Date: Fri, 28 Aug 2020 11:25:40 +0200 Subject: [PATCH] move EnableTargetAsyncOption this should work now, see #794 --- src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }