Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Standalone build with development build checked missing development console

Discussion in 'Editor & General Support' started by Epilol, Dec 18, 2015.

  1. Epilol

    Epilol

    Joined:
    Jul 21, 2015
    Posts:
    85
    As in topic title my debug build is missing the console, Does anyone know what is the problem?

    Thanks
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,851
    What platform is this, windows?
    Is anything actually going to the console? It won't show if its empty. Try sending a debug.logerror.
     
  3. Epilol

    Epilol

    Joined:
    Jul 21, 2015
    Posts:
    85
    it's mac. Oh maybe that's the reason. I was testing because the game freezes when I load the game scenes (the menus work) only in the build mode (both standalone and web player). In the editor everything works. Maybe nothing gets printed in the console. What log file should I check to see what's going on?
     
    Last edited: Dec 19, 2015
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,851
    It should be in the directory with the build. See my signature
     
  5. Epilol

    Epilol

    Joined:
    Jul 21, 2015
    Posts:
    85
    I added Debug.Log just before Application.LoadLevel(0) and the console doesn't show up.

    There is nothing in the directory of the build :(
    The .app file is in the desktop
     
  6. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,851
  7. Epilol

    Epilol

    Joined:
    Jul 21, 2015
    Posts:
    85
    ye I saw that.
    Should I check the Editor log in the library folder? Does it show info about the build I made?

    Also I noticed that when I force quit my game it writes in the unity editor "Sending message header failed"
     
  8. Epilol

    Epilol

    Joined:
    Jul 21, 2015
    Posts:
    85
    Ok I guess it's the player.log file.

    This is the error (I still need to figure out what's going on)

     
  9. Epilol

    Epilol

    Joined:
    Jul 21, 2015
    Posts:
    85
    ok, after some tests this could be the part of code that gives me the problem.
    It seems that yield return www doesn't work.

    Code (CSharp):
    1. public void SendHttpRequest<E> (string action, IDictionary<string,string> data, Action<E> onSuccess, Action<string> onFailure, ITask task)
    2. {
    3.     WWWForm form = new WWWForm();
    4.  
    5.     foreach (KeyValuePair<string,string> entry in data)
    6.         form.AddField (entry.Key, entry.Value);
    7.  
    8.     counter++;
    9.     www = new WWW(GetFullUrl (action), form);
    10.     StartCoroutine (ProcessRequest (action, www, onSuccess, onFailure, task));
    11. }
    12.  
    13. private IEnumerator ProcessRequest<E> (string action, WWW www, Action<E> onSuccess, Action<string> onFailure, ITask task)
    14. {
    15.     Debug.Log ("the player.log shows this");
    16.     yield return www;
    17.     Debug.Log ("the player.log doesn't show this");
    18.  
    19.     if (www.error != null)
    20.         onFailure (www.error);
    21.  
    22.     else
    23.     {
    24.         if (action == ACTION_GET_DATA)
    25.         {
    26.             Debug.Log ("www.text " + www.text);
    27.             onSuccess ((E)task.JobFromJson (www.text));
    28.         }
    29.     }
    30. }
     
    Last edited: Dec 19, 2015