Skip to content
| Marketplace
Sign in
Visual Studio>Tools>ReAttach
ReAttach

ReAttach

Erland R

|
130,885 installs
| (89) | Free
ReAttach gives you an easy way to ReAttaching your prior debug targets. ReAttach stores your attach history for you and provides toolbar, menu and keyboard shortcuts for easy access.
Download

ReAttach

ReAttach gives you an easy way of reattaching to your prior debug targets. This is especially useful when working with IIS-processes, test runners and web browsers. ReAttach stores your attach history for you and provides both toolbar and menu options for easy access.

The hotkey sequence CTRL+R, CTRL+A is used to ReAttach to your latest target (top of the history list). If your process is not currently running, ReAttach will ask you to start it and attach to it as soon as it becomes available.

Older versions of Visual Studio (2010-2019)

Older versions of ReAttach (compatible with older versions of Visual Studio) can also be found pre-packaged in the GitHub repository here.

Compatibility table

Visual Studio version ReAttach version Link
2010 1.1 Download
2012 2.0 Download
2015 2.2 Download
2019 2.3 Download

If you encounter problems with an extension on a particular version of VS, please let me know and try moving back to an earlier version.

Release notes

2.5

  • Support for Visual Studio 2022. Unfortunately at the cost of several older versions (see old versions).
  • 10 history items instead of 5 (by popular demand).

2.3

  • Support for Visual Studio 2019. Unfortunately at the cost of several older versions (see old versions).

2.0

  • Build before ReAttaching: You can now enable auto rebuilding before reattaching to targets.
  • Multiple debug engines: Reattach will now remember specific (and multiple) debugging engines and attach to them accordingly.
  • Minor fixes: Various bugs and minor tweaks.

1.1

  • Better UI support: You now have dedicated buttons and a toolbar that you can use to customize your experience (they're placed under the debug category).
  • Multiple targets: Attached targets are temporarily hidden/disabled in the history. This allows you to ReAttach to multiple targets in a row using the top-level shortcut and hotkeys.
  • More hotkeys: In addition to the original one, CTRL+R, CTRL+[1-5] can also be used, allowing attaching to older targets.
  • Remote debugging support: Experimental for now. When you attach to a remote target the server required is also stored. When ReAttaching, a different transport qualifier is used.
  • Minor fixes: A few bugs, language changes, UAC support etc.

The ReAttach menu controller dropdown showing several targets in the users ReAttach history.

How does it work?

When debugging is started and the underlying reason is a user attach, ReAttach stores process path, username and PID in the registry (in a subkey called ReAttach located under the currently running visual studio user's key). Once a ReAttach is made the following steps occurs:

  1. All candidates (running processes) with matching path and username are filtered out.
  2. If there's a candidate with a matching PID that process is immediately selected and attached to.
  3. If no direct match on PID can be found the process with the highest PID is selected and attached to.
  4. If no match at all is found, the user is presented with a modal dialog telling him/her to start the process or cancel.

When trying to ReAttach to a process that is not running, the user is prompted with a dialog waiting for the process to start. This can for example be helpful to catch exceptions in the startup sequence of a web application running on IIS.

Source code!?

The source code for this extension is available on GitHub. Feel free to fork it and add stuff you're missing.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft