Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/articles/c-sharp-tutorials/)
-   -   OutputDebugString in .NET (C#) (http://www.go4expert.com/articles/outputdebugstring-net-c-sharp-t2061/)

shabbir 29Nov2006 17:30

OutputDebugString in .NET (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 ...


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

All times are GMT +5.5. The time now is 11:16.