Update some debug function.