Enable debug variable only when debug code is enabled, fixes the warning: