debugging while running multi-threaded