Getting Debug.Log() to work in Visual Studio

…a similar issue to this one: Unity ID

I’m trying to get Debug.Log() to write to the Visual Studio output window in UnityVS, but it doesn’t seem to. Unity.Debug.Log() writes to the Unity console window, but not echo to VS either. The ‘Send console to Visual Studio’ in UnityVS should do this? It doesn’t seem to either.

It would seem that Unity is intercepting the OutputDebugString calls and redirecting to its own log. Is this the case? If so, is it possible to disable this?



In Visual Studio: DEBUG/Attach to Process…

and select your Unity.exe from list.