The Raymond Corporation Interview Question

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