Avoid using Console.Write or Console.WriteLine as it can affect console application output. Use Debug.Write or Debug.WriteLine instead.