How can I rotate a stepper motor axis by hand and record the output?

google "stepper as encoder".