fix: print logs on trapping error while stepping