changed the check for debug console to check if NDEBUG is not defined as it is the standard behaviour