1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

OutputDebugString in .NET (C#)

Discussion in 'C#' started by shabbir, Nov 29, 2006.

  1. shabbir

    shabbir Administrator Staff Member

    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:
    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
     

Share This Page