add debug codes

as title.