OutputDebugString in .NET (C#)

shabbir's Avatar author of OutputDebugString in .NET (C#)
This is an article on OutputDebugString in .NET (C#) in C#.
In my old MFC programming days we used to track the problems using the OutputDebugString and I have written my own version of OutputDebugString which accepts multiple arguments. When I started C# and .NET I wanted to know how can I do this in C sharp as well and remember that it should be as simple as MFC one. At least Microsoft says its more easier to code in .net than any other languages.

The Code ...


Code: CSHARP
System.Diagnostics.Debug.WriteLine("I am using dot net debugging");
System.Diagnostics.Trace.WriteLine("I am using dot net tracing");
Remember to Run in Non Debug mode (Ctrl+F5 or Debug/Start Without Debugging) or else VS.NET Output Window will grab the debug output