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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With