Home » Silverlight » Debugging trace with Silverlight 4

Debugging trace with Silverlight 4

Sometime it can be useful to get some tracing line when debugging. For quick trace, I usually use System.Diagnostics.Debug.WriteLine method. This is still working with Silverlight. Also, the System.Diagnostics.Debugger.Log method can also log into the Output windows (Under Debug) of Visual Studio.

System.Diagnostics.Debug.WriteLine("~~~~~ WriteLine ~~~~~");
System.Diagnostics.Debugger.Log(0, null, "########### Log ##########\n");

If you like my article, think to buy my annual book, professionally edited by a proofreader. directly from me or on Amazon. I also wrote a TypeScript book called Holistic TypeScript

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.