Update Debug function.