finish debug