revise debug codes, no functional change