only trace the singlestep log. code complete, not tested yet