Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why can't I attach to my process?

I can start debugging (F5).

If I start with Ctrl+F5 and then go to attach later I am unable.

The program name is grayed out. The attach button is disabled when I select the row for the program.

I've tried using Attach to "Automatic" or picking Managed 4.0 + Native.

I've tried checking both "Show processes from all users" and "Show processes in all sessions"

I'm running Visual Studio as an administrator.

Any ideas?

like image 600
Derek Avatar asked Dec 15 '11 14:12

Derek


People also ask

How do I turn on auto attach?

To enable the feature, either use the Toggle Auto Attach command from the Command Palette (Ctrl+Shift+P) or, if it's already activated, use the Auto Attach Status bar item.

What does it mean to attach to a process?

However, there are some situations where you must debug the application in a different way — by attaching to its process. < i>Attaching</i><i> to the process</i> means telling the CPU to send the instructions in the executable code to a debugger before they're executed by the CPU.

Why is w3wp exe not running?

Answers. The w3wp.exe will not appear until the first request has entered the pipeline. So if you browse to your site and then open your task manager, you will see the w3wp.exe.


1 Answers

You are probably seeing the .vshost.exe process for your application, which is always grayed out.

Look through the list of processes and make sure that there isn't another one listed with the same/similar name.

Also note: if this is a console application and the process reaches the end of the Main method (the console window will say "Press any key to continue . . ."), then you will probably not see the process listed, because it has ended.

like image 115
Dr. Wily's Apprentice Avatar answered Oct 27 '22 10:10

Dr. Wily's Apprentice