Yes, multi threading is hard to debug.

When I have situations like this, I normally write 'debug' lines to some kind of logger. It can be the console, a simple textfile or whatever you want to log too.