convert debug to trace