我正在编写一个简单的C#代码,但是Debug.WriteLine(“..”)的部分;出现,跳过.例如:
WebClient wc = new WebClient(); wc.Encoding = System.Text.Encoding.GetEncoding("ISO-8859-1"); wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(SearchWordsDownloaded); Debug.WriteLine("test"); wc.DownloadStringAsync(new Uri("SomeURL"));
为什么会这样?