fix bug:debug tool can not be used in concurrent scence,use threadlocal to fix this bug.