Add script function which can be used to determine if the engine is
running in a debug mode. This call allows the scripts to only show debug
information when appropriate.