debug diagnosis