Debug.Log results in no output?

Hi there,
I’m pretty much a complete beginner to Unity so hopefully someone is patient enough to help me through this.
I’m writing a unity based javascript script in order to do some operations and math. My script looks something like this.

    function Start () {
    	Debug.Log("TEST");
    	//Create character array to hold the raw data.
            //Code that is not relevant for this question
    }

I’ve added a Debug.Log operation just so I can ‘see the script in action’ as it were. When I open my script in MonoDevelop, and hit Debug (that is, hitting f5), the code compiles, it links to an instance of Unity, it seems to run… and then I get nothing. No messages, no “TEST”, nothing.

I would expect to see “TEST” somewhere in the Unity Console - based on what I’ve seen on these forums and from discussions with others.

Is there something basic I’m doing wrong? Should I be looking in a different window, or running MonoDevelop differently?

Save the script, then switch to Unity and click the “play” icon. Also the script must be attached to some object. Don’t use debug in Monodevelop unless you actually need to run the debugger.

Out of desperation, I poked around in the console window and found that you need to click the Collapse tab on the left top of the console window before Debug.Log or print will work. Of course, I am working on an Android touch screen example. I haven’t tried it on a Windows example yet.

Just to add to the probable solutions - I had the same problem and nothing above worked, until I tried “Window - Layouts - Default”.

Seemed to be a weird bug (as of 5.3.5f1 Personal Edition) - though I cannot seem to recreate it either.

Another possible issue is that the little speech bubble with the exclamation mark on the right in the console tab is not toggled. That solved it for me.

Try using

print ("TEST");

Does the same thing.

Ya @Eric5h5 is right you need to run it in unity not your IDE. In unity you make a empty game object in the hierarchy, I just right click for the menu, and then you can drag and drop your script onto it as a component in the inspector, or use the add component button in the inspector. Putting your log in the start like that should cause it to print that message once in the console window.