Perhaps I haven't found the right post but I have been unable to set up debugging for a ASP website. The website is running on our server but I was told to attach to it locally. Unfortunately, I cannot figure out how to do this.
I have a local copy of the website in source control that I can open in Visual Studio but obviously Visual Studio will not run a classic ASP site. I have no idea how to go about attaching to it locally.
I have both Visual Studio 2008 and 2010 running on Windows 7.
In the remote debugging tool select tools-> options -> no authentication for all users. Go to visual studio and attach to process w3wp.exe. if cant see the process (w3wp.exe). Open the website link in browser and select show for all users now u will be able to see the process and attach.
Although the primary focus of Web debugging in Visual Studio 2010 is ASP.NET, you can also debug legacy ASP Web applications.
ASP code executes in the Internet Information Services (IIS) process (in-process execution) or in a separate Mtx.exe process (out-of-process execution). To debug ASP code, you must attach to the IIS or Mtx.exe process. To debug client-side script as well, you must also attach to the IIS process. For information on how to attach to processes, see Attaching to Running Processes.
When you attach to an ASP Web application, make sure you select the appropriate program types in the Attach To Process dialog box. When you debug script, Managed code must not be selected. You cannot debug script and managed code at the same time in Visual Studio 2005.
and
http://msdn.microsoft.com/en-us/library/3s68z0b3.aspx
To attach to a running process
On the Debug menu, select Attach to Process. If no project is open, select Attach to Process on the Tools menu.
In the Attach to Process dialog box, find the program that you want to attach to from the Available Processes list.
In the Attach to box, make sure that the type of code you will debug is listed. The default Automatic setting tries to determine what type of code you want to debug. If the automatic setting is not appropriate:
Click Select.
In the Select Code Type dialog box, click Debug these code types and select the types to debug.
Click OK.
Click Attach.
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