Click here to Skip to main content
15,884,472 members
Articles / All Topics

Visual Studio 2017 – Reattach to Process

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
9 Jul 2017CPOL1 min read 4.8K   1  
Visual Studio 2017 - Reattach to process

A number of times, I have been in situations that required troubleshooting certain issues against a running process using “Attach to Process” mechanism. The whole process of bringing up “Attach to Process” dialog, finding the right process and then attaching to it, etc. could become a little tedious process especially when you have to attach, detach and then re-attach against the same process multiple times. There was enough need for a better mechanism that there are Visual Studio extensions available for it in the marketplace. Visual Studio 2017 has introduced a new “Reattach to process” option that makes this process little easier.

Let’s say, I need to debug against running instance of IISExpress. I’ll first bring up the Debug -> Attach to Process menu option.

1

We can then find the process from this dialog and then Attach to for debugging.

2

Once the troubleshooting is done, we can just Stop Debugging this.

3

So far so good. However, if I need to go back and attach to the same process again and again, I needed to repeat all the above steps again & again too. However, if you are using Visual Studio 2017, you should be able to see the following “Reattach to Process” option that will start debugging same IISExpress process again without doing all those steps.

4

Until next time, happy debugging!!

Filed under: CodeProject, Debugging, Visual Studio 2017

Image 5 Image 6

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Canada Canada
Kamran Bilgrami is a seasoned software developer with background in designing mission critical applications for carrier grade telecom networks. More recently he is involved in design & development of real-time biometric based security solutions. His areas of interest include .NET, software security, mathematical modeling and patterns.

He blogs regularly at http://WindowsDebugging.Wordpress.com

Comments and Discussions

 
-- There are no messages in this forum --