How to detect in GDScript if we are currently running in debug or release build?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By chanon
:warning: Old Version Published before Godot 3 was released.

I’m sorry if this has been asked before, I couldn’t find it.

How to detect in GDScript if we are currently running in debug or release build?

:bust_in_silhouette: Reply From: chanon

I found it OS.is_debug_build()