- Home /
Getting Debug.Log() to work in Visual Studio
...a similar issue to this one: http://answers.unity3d.com/answers/899218/view.html
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?
Cheers
John
Answer by jenci1990 · Feb 12, 2015 at 12:42 PM
In Visual Studio: DEBUG/Attach to Process...
and select your Unity.exe from list.
This partially works, but whenever I hit a breakpoint in C# code, both VS and Unity hang. I have to force close VS.
Cheers John