Sunrise Labs Interview Question

How do you go about debugging and testing code?