diff --git a/src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs b/src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs index dd11dd70032..3f9f36d1302 100644 --- a/src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs +++ b/src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs @@ -115,22 +115,22 @@ internal static CompileResult Compile(IBuildEngine engine, // documentation, on not windows platform Debugger.Launch() always return true without running a debugger. if (System.Diagnostics.Debugger.Launch()) { - // Set timeout at 1 minut. + // Set timeout at 1 minute. var time = new System.Diagnostics.Stopwatch(); var timeout = TimeSpan.FromMinutes(1); time.Start(); - // wait for the debugger to be attacked or timeout. + // wait for the debugger to be attached or timeout. while (!System.Diagnostics.Debugger.IsAttached && time.Elapsed < timeout) { - engine.LogMessage($"[PID:{System.Diagnostics.Process.GetCurrentProcess().Id}] Wating attach debugger. Elapsed {time.Elapsed}...", MessageImportance.High); + engine.LogMessage($"[PID:{System.Diagnostics.Process.GetCurrentProcess().Id}] Waiting to attach debugger. Elapsed {time.Elapsed}...", MessageImportance.High); System.Threading.Thread.Sleep(100); } time.Stop(); if (time.Elapsed >= timeout) { - engine.LogMessage("Wating attach debugger timeout.", MessageImportance.Normal); + engine.LogMessage("Waiting to attach debugger has timed out.", MessageImportance.Normal); } } else