.Net trace to the output window

Simple but effective way of finding out where issues occur in an application by using the output window and trace:

foreach (var item in response)
{
   Trace.Write(yourVar + " - ");
   Trace.WriteLine(string.Format("a: {0} - b: {1}", a, b));
}

Leave a Reply

Your email address will not be published. Required fields are marked *