modified trace debugging