# Does Debug.LogAssert gets deleted in Unity once I build the game?

Does Debug.LogAssert(expression) gets deleted in Unity once I build the game?

I was not able to find it here. I feel like it should get deleted, but still I can not assure myself in it (no reliable source was found by me).

So, I would be grateful for the source provided which would assure me in it or point me out, that it is not the case.

• Just try it out? – Tyyppi_77 Apr 27 '18 at 11:14

Yes, Debug.Assert gets removed from non-development builds by default. It's possible to change this setting - see the Unity documentation on BuildOptions.ForceEnableAssertions: