Debug Single Thread


This Visual Studio 2010 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 t...

(3) Review
Visual Studio
2013, 2012, 2010
Download (2,498)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (3)
Q and A (2)
Sign in to write a review
Sort by:

by Mr. Andersen | September 09 2011

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.

Mayerwin September 10 2011
| Edit |

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!

by PikachuEXE | July 18 2011

Haven't tried it yet
5 stars first :P

by Günther1982 | July 08 2011

I like it. Thanks for sharing :-)
Saves a whole bunch of mouse-clicks.

Sign in to start a discussion

  • VS2013
    6 Posts | Last post July 17, 2015
    • Hi,
      do you plan an update so that it will be compatible with Vs2013?
    • 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:
    • Hi,
      thanks for your response.
    • Hi Christiansei, I have just updated the extension, hopefully it also works for VS 2013 without the SDK.
    • hi, installed it today on vs2013. Works perfect!
      thank you!!
  • How do you show the new buttons/commands?
    2 Posts | Last post November 13, 2013
    • I installed your extension, but cannot find the new commands. Where should they appear?
    • What is your version of VS?