Search code examples
windowsvisual-studioxcodenslog

Xcode's NSlog equivalent under Visual Studio


Under Xcode for MAC, I use NSlog and the Console for debugging. Is there an equivalent method under Visual Studio under Windows?

Edit: For completeness, here is what needed

using System.Diagnostics; //namespace

//to write to debug console Debug.WriteLine("something goes here");

Also, unlike Apple's NSLog, the Debug.Write only output when the app is built as Debug mode.


Solution

  • I think it's WinAPI OutputDebugString function.