Skip to content

mayerwin/vs-debug-single-thread

Repository files navigation

Debug Single Thread - Visual Studio Extension

Screenshot

This is the official repository for:
https://marketplace.visualstudio.com/items?itemName=mayerwin.DebugSingleThread

Initial release page here:
http://erwinmayer.com/labs/visual-studio-2010-extension-debug-single-thread

Description

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 one that needs to be followed, and therefore helps improve productivity.

Features

  • Restrict further execution to the current thread only. Will freeze all other threads. Shortcut: CTRL+T+T or snowflake button. Click button again to thaw all other threads. Known frozen threads before the command runs (e.g. due to a breakpoint) will be remembered and not thawed. If this is not what you expect, please let me know so I can add an option to customize behavior.
  • Switch to the next single thread (based on ID). Will change current thread and freeze all other threads. Shortcut: CTRL+T+J or Next button.

Supported editions

Visual Studio 2015, 2017, 2019, 2022+.

Visual Studio 2017 and 2019 support has been temporarily dropped due to limitations imposed by Microsoft's Visual Studio Marketplace. The last stable release (4.0.0) supporting Visual Studio 2019 can however be downloaded here.

Visual Studio 2012 and 2013 support has been dropped due to new requirements imposed by Microsoft to speed up loading time with AsyncPackage. The last stable release supporting Visual Studio 2012 and 2013 can however be downloaded here.

Visual Studio 2010 support has been dropped due to limitations imposed by Microsoft's VSIX format to support Visual Studio 2017. The last stable release supporting Visual Studio 2010 can however be downloaded here.

You are welcome to contribute to this project!