LogicGate interview question

What is your process when running into bug in your code?