Skip to content

Commit d522ce4

Browse files
authored
Fix typos in build messages when waiting to attach a debugger (#16701)
1 parent 37ba4ce commit d522ce4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,22 +115,22 @@ internal static CompileResult Compile(IBuildEngine engine,
115115
// documentation, on not windows platform Debugger.Launch() always return true without running a debugger.
116116
if (System.Diagnostics.Debugger.Launch())
117117
{
118-
// Set timeout at 1 minut.
118+
// Set timeout at 1 minute.
119119
var time = new System.Diagnostics.Stopwatch();
120120
var timeout = TimeSpan.FromMinutes(1);
121121
time.Start();
122122

123-
// wait for the debugger to be attacked or timeout.
123+
// wait for the debugger to be attached or timeout.
124124
while (!System.Diagnostics.Debugger.IsAttached && time.Elapsed < timeout)
125125
{
126-
engine.LogMessage($"[PID:{System.Diagnostics.Process.GetCurrentProcess().Id}] Wating attach debugger. Elapsed {time.Elapsed}...", MessageImportance.High);
126+
engine.LogMessage($"[PID:{System.Diagnostics.Process.GetCurrentProcess().Id}] Waiting to attach debugger. Elapsed {time.Elapsed}...", MessageImportance.High);
127127
System.Threading.Thread.Sleep(100);
128128
}
129129

130130
time.Stop();
131131
if (time.Elapsed >= timeout)
132132
{
133-
engine.LogMessage("Wating attach debugger timeout.", MessageImportance.Normal);
133+
engine.LogMessage("Waiting to attach debugger has timed out.", MessageImportance.Normal);
134134
}
135135
}
136136
else

0 commit comments

Comments
 (0)