Update and clear debug