Only assign DEBUG to a no-op function if Dbg.is_on==false