change debug dir to tmp.