Clever Devices interview question

Q: how do you debug in multi-threaded environment.