GE interview question

How would you go about debugging a piece of code?