Attach to process in VS2010 express using a web site. Is it possible?
Solution 1
Visual Studio 2010 Express Edition supports Attach to process but it is available only in Expert Settings.
Go to Tools->Settings->Expert Settings.
After this change, you should see Attach to Process button in Debug menu.
Solution 2
It isn't available for VS2100 Express. Check the link. http://msdn.microsoft.com/en-us/library/vstudio/c6wf8e4z(v=vs.100).aspx
Solution 3
An option for websites hosted on another application (Like IIS) is to use the property pages.
Right Click on Project/Website in Solution Explorer->Property Pages->Start Options
- Launch VS2010 Express (or VS2012 Express) as Administrator
- Set "Start Action" radio-button to "Don't open a page. Wait for a request from an external application."
- Set "Server" radio-button to "Use Custom Server"
- Set the "Base URL" textbox to your site url.
- Verify the Debuggers: ASP.NET option is checked.
- Hit F5 to launch the debugger, then request the page in the browser.
Then, linking to the website is as easy as pressing the play-debug button and navigating to your url.
NB: This was tested in VS Express for Web 2012 (ver. 11.0.50727.1) on a Web Site project.
punkouter
Updated on July 22, 2022Comments
-
punkouter almost 2 years
I have read this article but it applies to web projects with a .csproj... What about a 'web site'?
http://www.ninjatrader.com/support/forum/showthread.php?t=15671
People at work here tell me to just response.write my way to debug the web sites but I really miss the attach to process that is in the professional edition of vs2010.. or maybe I have to get used to response.write debugging?
(Reason I am not debugging is ektron 8.0 does not compile is vs2010.. so I must attach to process.. or use vs2008)
-
user720594 about 12 yearsI have this version of Visual Studio 2010: Microsoft Visual Studio 2010 Version 10.0.30319.1 RTMRel Microsoft .NET Framework Version 4.0.30319 RTMRel Installed Version: VC Express Microsoft Visual C++ 2010 XXXXX-XXX-XXXXXXX-XXXXX Microsoft Visual C++ 2010 and the the instructions, i putted here are correct.
-
yoyo over 11 yearsUnfortunately not available in the C# version of Visual Studio.
-
yoyo over 11 yearsUnfortunately not available in the C# version of Visual Studio.
-
Joel Peltonen almost 11 yearsYeah.. isn't there in Visual Web Developer expert mode.
-
Joel Peltonen almost 11 yearsNot available in VS 2010 Visual Web Developer
-
Roland Pihlakas about 10 years@yoyo, somehow it happens that C# "attach to process" is available via C++ Express 2010 instead. Though the variables evaluation does not seem to work, code stepping (.NET, not just asm) is nicely available via C++ Express 2010 "attach to process".
-
Roland Pihlakas about 10 years@yoyo, somehow it happens that C# "attach to process" is available via C++ Express 2010 instead. Though the variables evaluation does not seem to work, code stepping (.NET, not just asm) is nicely available via C++ Express 2010 "attach to process".
-
Admin over 9 years-1: it is available, see the answer above. All it takes is to enable expert settings.
-
cod3monk3y over 9 yearsYou'd think after 90 years that feature would have eventually trickled down to the Express edition.