Unity not logging debug entries

For some reason unity stopped logging entries on android; Debug.Log() no longer works.

My setup:

How can I reenable Debug.Log?

Look at the top right of your Console window. Are all three buttons (Log, Warning, Error) pressed?

2 Likes

Yes, the only log entries I get, are the build notifications from unity. There are no in code log entries.

Show the code that is not working.

1 Like

Nothing out of the ordinary. Most files have an entry similar to:

    // Use this for initialization
    void Start () {

        ///////////////////////
        /// Add Debug.Log() for testing
        ///////////////////////
        Debug.Log("FileName.cs -- TEST");
        // Rest of the code
        ...
     }

When did this start happening, do they work on a new project? Do you have that script attached to an object?

1 Like

It seems that this occurs in new projects as well:

5118941--505589--dbg-logcat.png

The script DbgLogcat.cs attached to the camera:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DbgLogcat : MonoBehaviour {

    // Use this for initialization
    void Start () {
        Debug.Log("TEST DEBUG -- TEST DEBUG -- TEST DEBUG");
    }
   
    // Update is called once per frame
    void Update () {
        Debug.Log("UPDATE TEST DEBUG -- UPDATE TEST DEBUG -- UPDATE TEST DEBUG");
    }
}

You are discussing two different things. The build is failing, which is separate from Debug.Log not working. Do you see the debug statements when you run the game in the Editor, in the Console window? If the game doesn’t build, you wouldn’t be able to install it on an Android device.

1 Like

Fixed it. Apparently needed to refresh the “Editor” in unity.

I cant get this to work either, seems ok until I swap scene in my build, then nothing shows any ideas?