Qualcomm interview question

How would you debug a piece of code without access to a debugger or an IDE?

Interview Answers

Anonymous

16 Jul 2014

I answered that I would use print statements in between to check variable states. In hindsight, I feel that the right answer would have been unit tests.

1

Anonymous

4 Dec 2015

Putting some logger on applicable places.