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. Dismiss Notice

Shoul i delete Debug.log for final version?

Discussion in 'Scripting' started by resetme, Nov 19, 2012.

  1. resetme

    resetme

    Joined:
    Jun 27, 2012
    Posts:
    204
    I'm done with my game and ready to send it to apple.

    My concern are... should i delete all comments and debug.log/print?

    thanx!
     
    Last edited: Nov 19, 2012
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    There's totally no point deleting comments, since those are not included in code. You can turn off "use player log" in the player settings, though I don't know if that works with iOS.

    --Eric
     
  3. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,066
  4. resetme

    resetme

    Joined:
    Jun 27, 2012
    Posts:
    204
    Ty!.

    Going to make a copy of my game and delete all my Debug.
     
  5. NewDeveloper

    NewDeveloper

    Joined:
    Aug 25, 2012
    Posts:
    153
    I suggest you to do it, because if you have too many debug.log or print the game might run slow!
     
  6. resetme

    resetme

    Joined:
    Jun 27, 2012
    Posts:
    204
    i did that.

    im waiting for apple review

    ty all!
     
  7. Deleted User

    Deleted User

    Guest

    You could also wrap your own preprocessor definition around your debug code, like

    Code (csharp):
    1.  
    2. #if MYDEBUG
    3. Debug.Log(*,,,")
    4. #endif
    5.  
    and define/undefine it in Player Settings