How to debug ASP code in Visual Studio 2005

Posted by Raja under ASP.NET on 4/30/2007 | Views : 6523 | Status : [Member] | Replies : 7
Hi,

Can anyone answer how to debug classic ASP code in Visual Studio 2005?

Regards,
Raja, USA



Responses

Posted by: t5j9033387989 on: 9/12/2013 [Member] Starter | Points: 25

Up
0
Down

Go to Control Panel>Administrative Tools>Computer Management. Add IWAM_ComputerName account to the Debugger Users group.
Create a Web Application Project in VS 2005 and add the .asp files.
Create a virtual directory in IIS for the Web Application Project that you created.
On the Properties tab of the virtual directory in IIS, do the following:
Click the Configuration button.
On the Mappings tab, select .asp and click Edit.
Add the DEBUG verb and click OK.
Go to the Debugging tab.
Enable ASP debugging and client-side debugging.
Load the web application project and set the breakpoint in ASP.
In VS 2005, go to Debug > Attach to Process.
Select the DLLHost process that runs under the IWAM_ComputerName account.
Load the .asp file in the browser and the break point will bind now.


mark this answer if it will really help you,

Thanks&Regards
ketan

Raja, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 9/12/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
You can see the below links:-

http://weblogs.asp.net/akjoshi/archive/2008/07/16/Debugging-classic-asp-application-with-Visual-Studio-2005.aspx
http://stackoverflow.com/questions/9484235/how-to-open-classic-asp-website-locally-and-attach-to-it-in-visual-studio
http://blogs.msdn.com/b/mikhailarkhipov/archive/2005/06/24/432308.aspx
http://www.codeproject.com/Articles/19306/Dubugging-Classic-ASP-in-Visual-Studio-2005
http://social.msdn.microsoft.com/Forums/vstudio/en-US/f724bf7d-fffc-4b83-98c4-7274a7acabe2/4-how-do-i-debug-classic-asp-application-in-visual-studio-20052008

Happy coding.

If it helps you or directs U towards the solution, MARK IT AS ANSWER

Raja, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Webmaster on: 7/5/2007 [Administrator] HonoraryPlatinum

Up
0
Down
Go to Debug > Attach to Process ...

Select dllhost.exe and click Select... button. Select "Script" checkbox from the dialogue box.

Click OK and ultimately click Attach.

NOTE: Debugging will not work unless your IIS is enabled for .asp debugging. To do that go to your IIS > Home Directory > Configuration > Debugging and check both checkboxes (Enable ASP server-side debugging and Enable ASP client-side debugging)

Happy Coding !!!.

Best regards,
Webmaster
http://www.dotnetfunda.com

Raja, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Amitgupta007_99 on: 7/23/2007 [Member] Starter

Up
0
Down
This is the article which have helped me to get through this problem, It may help u too

1. Enable ASP debugging on the server. (I also added DEBUG verb to the asp extension, but I am not sure if it is required).
2. Open classic ASP in VS 2005.
3. Set breakpoint.
4. View page in browser or run without debugging.
5. Debug | Attach to Process
6. Locate IIS ASP worker process (w3wp.exe on IIS6) which exposes x86 and Script and attach as Script.

At this point breakpoint should bind and you should be able to hit it. You may have to refresh the page in the browser to get the code executed again. I tried on Windows 2003 SP1 Standard Server running IIS 6 and it worked for me.

N joy

AmitG

Raja, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Raja on: 9/10/2007 [Member] Starter

Up
0
Down
Thanks Amit,

You step wise enabling debugging .asp page helped me.

Great help.

Thanks
Raja

Regards,
Raja, USA

Raja, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Poster on: 9/29/2009 [Member] Starter

Up
0
Down
Thanks Webmaster and Amit, This is what I was looking for.

Take Care.

Raja, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: WebMaster on: 9/29/2009 [Administrator] HonoraryPlatinum

Up
0
Down
No problem.

We are glad this helped you.

Thanks

Best regards,
Webmaster
http://www.dotnetfunda.com

Raja, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response