Pregunta de entrevista de The Raymond Corporation

How do you debug your code and what are state machines?