Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Debug.isDebugBuild always return true

Discussion in 'Scripting' started by benblo, Aug 24, 2007.

  1. benblo

    benblo

    Joined:
    Aug 14, 2007
    Posts:
    476
    Did the simplest scene, with a GUI that shows the value of Debug.isDebugBuild: it always says true whether I check "strip debug symbols" or not.
     
  2. Martin-Schultz

    Martin-Schultz

    Joined:
    Jan 10, 2006
    Posts:
    1,377
    I second that. Even in release builds, debug symbols stripped therefore, even in webplayer or dashboard, it returns always true. Might this one be broken?
     
  3. taylorcw

    taylorcw

    Joined:
    Jun 11, 2008
    Posts:
    11
    I'm finding the same thing here. Is anyone really using Debug.isDebugBuild. I use it to post some debugging UI and would find it very useful if isDebugBuild actually returned false in release builds so that that debugging UI would not show up! Has there been any work on this since the last post here?
     
  4. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    I reported this bug a while ago, but it hasn't been fixed yet.
     
    ZO5KmUG6R likes this.
  5. benblo

    benblo

    Joined:
    Aug 14, 2007
    Posts:
    476
    No, I don't think so, it's clearly broken.

    Don't forget you also have Application.isEditor at your disposal.

    Other than that, just pile reports until someone at UT finally cares... but be prepared to get a "after Windows" type of answer ;) !
     
  6. djhatvr

    djhatvr

    Joined:
    Sep 22, 2019
    Posts:
    53
    Hopefully it's not too far away from being fixed...