Skip to content

Commit c0b721f

Browse files
committed
QueryAsync: No trace output in release build
1 parent fbcb27b commit c0b721f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ConEmuWinForms/GetInfoRoot.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static async Task<GetInfoRoot> QueryAsync([NotNull] ConEmuSession session
5959
throw new ArgumentNullException(nameof(session));
6060

6161
GuiMacroResult result = await session.BeginGuiMacro("GetInfo").WithParam("Root").ExecuteAsync();
62-
Trace.WriteLine("[ROOT]: " + result.Response);
62+
Debug.WriteLine($"[ROOT]: {result.Response}");
6363
if(!result.IsSuccessful)
6464
throw new InvalidOperationException("The GetInfo-Root call did not succeed.");
6565
if(string.IsNullOrWhiteSpace(result.Response)) // Might yield an empty string randomly if not ready yet
@@ -137,4 +137,4 @@ public enum States
137137
Exited
138138
}
139139
}
140-
}
140+
}

0 commit comments

Comments
 (0)