Is there any way to have a debug print in the concole window every time there is a thread switch? /Claes