PMC-Sierra interview question

How do you debug software?