Since VS11 removed macros, I can no longer fire this macro to attach to the webserver using a keyboard shortcut.
Is there another way to start the debugger and attach to a specific process with a keyboard shortcut in VisualStudio 2012?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The debugger in visual studio automatically attaches to the web server if you check that box in the project properties. A macro has never been necessary for that.
Check the “Use Local IIS Web server” box in Visual Studio, on the “Web” tab of your project properties. Then check the “ASP.NET” box at the bottom, under “Debuggers”
To debug, just hit F5.
EDIT
To get F5 to simply attach to w3wp.exe…
Make sure you have a web project set as the StartUp project

On that web project’s settings Web tab, just select “Use Local IIS Web server” and put in the url you use to go to your site (the url really only matters if you keep the Start Action on “Current Page”). I don’t like having a browser get launched, because there’s a good chance I’m actually on another site in the project. But what’s great is once it attaches to w3wp.exe, it’ll be debugging any site.
