Console.WriteLine replaced by Debug.WriteLine