before debug