Console Messages not appearing in vs 2013 Output window

I am using Unity 4.5.5 and Visual Studio is showing connected to an instance of Unity (plug ticked) my Debug.Log messages show up in Unity console but they don’t appear in output/Error List window of VS2013. The VS Error List window shows Warnings but no messages. I get Modules loaded messages and Exit messages in Output window but no Debug.Log or print messages, also Program Output is ticked in the VS Output window. I have VS Tools Configuration ‘Send Console to Visual Studio’ ticked and the SyntaxTree dll’s are loaded and the Unity Build Settings are set for Development Build and Script Debugging.
Any help would be appreciated

Messages should go to the Error List window(ensure all three options are toggled on), make sure the connection is enabled between unity and visual studio. Make sure it's set to a development build in your build settings and not a web player build which will not enable the udp connection between VS and Unity.

Hey Landem thanks for reply, I have all the things you mentioned checked, and I created an uninitialized GameObject variable in code just to generate a warning, which does show up in the VS Error List window, so confirms that everything is connected right? however, I'm using Debug.Log/print in Update() to show what Keyboard key was pressed, which appears in the Unity console but not in VS

@ribbs23, i'm curious, try changing the Debug.Log to Debug.LogWarning with the same in the parenthesis and see if the output ends up in the Error List window in Visual Studio.

Ok tried that but same result, I think like you said the VS tools have issues, good for debugging otherwise, think I'll get another monitor and stick unity console on that. Thanks for your input

4 Answers

4

Took a while but finally found a very simple thing that I was not aware of - being a newbie - There is a filter button on the error list, which didn’t look like it was clickable, so I clicked that and messages are now coming through, who knew?

Debug.Log is a unity function. Not VS. It’s normal if it doesn’t appear in VS, it’s not meant to show it anyways. Plus, you wanna see the Debug.Log when you’re testing the game, not when you’re staring at code. Just my two bits.

@ace_flooder, it is a function of SyntaxTree's Visual Studio tools for Unity to bind and display Unity's console messages in the Error List window. [UnityVS Features][1] [1]: http://unityvs.com/features/

That's very interesting actually, never heard of that before.

UnityVS is very slick, but has it's issues, they are trying to work it out and it's free since Microsoft bought them. +1 for honesty.

I just had this problem myself, turned out the problem was a mismatch of versions between UnityVS and Unity.

Hi there from 2020. Still have an issue when installing Unity + built in VS from scratch. Can see logs only in Unity’s console, not in VS Output window (Show output from: debug). Does anyone have a clue? Thanks in advance!