trace-mode debugging