This Visual Studio extension adds two shortcuts and toolbar buttons to allow developers to easily focus on single threads while debugging multi-threaded applications.
It dramatically reduces the need to manually go into the Threads window to freeze/thaw all threads but the on...
This tool does what it's supposed to do, but since it suspends all other threads than the one being focused on, this also means that if one of the suspended threads holds a lock on an object and the thread being focused on also tries to acquire that lock, the program will hang.
In one case I wasn't able to recover from the program hang, because the "Focus on this thread" snowflake button was also not responding, so I had to shut down Visual Studio in order to escape from the deadlock.
Hi Mr. Andersen, this is indeed a possible behaviour. Unfortunately I believe it is a limitation of the debugger itself, as this is something you could also experience by manually freezing all the threads (and you not always know by the thread title or location whether it has acquired a lock). Of course, any idea or code contribution to circumvent this problem (if possible at all) is welcome!
Is there any change that support for Visual Studio 2015 will be added?
I did do a quick test, and by just adding Visual Studio 2015 to the vsixmanifest file, it will be possible to install on VS2015 and it works as expected...
I could provide a proper pull request if you like...
Hi David, thanks for the feedback and good to know that it works. I will try uploading a version that supports VS 2015 shortly. I hadn't updated this extension as VS 2015 has better support for debugging multi-threaded apps and nobody had asked for it.
Hi David, I have published the version supporting VS 2015 (no version name change so that existing users of previous VS versions are not prompted to update for nothing). I hope your colleague enjoys it (and VS 2015)!
Hi Christiansei, I have not decided yet as I found VS2013 to be easier to deal with tasks and freeze/unfreeze threads. However I will let you know here if add support for VS2013. In the meantime feel free to check the source code on Codeplex.
I am able to make it work in VS2012, but it does not seem to be as straightforward with VS2013 (see problem described here: http://stackoverflow.com/questions/21859192/visual-studio-2013-extension-installed-but-no-menus-functionallity-without-vs-sd)