output debug in threads