Function update debug