From 6482b1b5d0bd20c3ccd6f4091af1ce5067e0c035 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; }