Update debuging_function