Both Debugger.Log and OutputDebugString have some key similarities:
But they have some key differences.
If you're writing managed code, you should probably call Debugger.Log() instead of pinvoke out to OutputDebugString.