Cirata interview question

How to debug certain multi-threading issues?