Click here to Skip to main content
Licence CPOL
First Posted 22 Jun 2007
Views 44,384
Bookmarked 31 times

Dubugging Classic ASP in Visual Studio 2005

By | 22 Jun 2007 | Article
Dubugging classic ASP in Visual Studio 2005 on Windows XP and IIS 5.

Introduction

I couldn't find a lot of documentation on how to debug the classic ASP pages in VS 2005 running on Windows XP and IIS 5.0. So I tried a few stuff and finally figured it out. I have listed those steps in this article. It is very easy and takes only 5 minutes. I have not tried it with the VS 2005 Website model and used the Web Application Project instead. If you do not have the Web Application Project add-in installed, you can download it from here.

Steps

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

Happy coding.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Madhu Rajagopalan



United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralVS80-KB915364-X86-ENU.exe PinmemberJRossi3:39 21 Oct '07  
GeneralIs there a way to do this in VWD2005 Express Pinmembermhariri4:33 26 Jun '07  
GeneralDuh!!!!!!!! PinmemberBuddy Stein11:53 24 Jun '07  
GeneralRe: Duh!!!!!!!! PinmemberMadhu Rajagopalan8:16 25 Jun '07  
AnswerNo, but, it's in the MSDN documentation PinmemberBuddy Stein9:41 25 Jun '07  
GeneralRe: No, but, it's in the MSDN documentation Pinmemberdenic21:48 27 Jun '07  
QuestionAny hints for VS 2005 in Vista? PinmemberComplexityChaos9:59 22 Jun '07  
AnswerRe: Any hints for VS 2005 in Vista? PinmemberOwen375:21 26 Jun '07  
AnswerRe: Any hints for VS 2005 in Vista? PinmemberOwen375:43 26 Jun '07  
GeneralRe: Any hints for VS 2005 in Vista? PinmemberMadhu Rajagopalan6:10 26 Jun '07  
GeneralRe: Any hints for VS 2005 in Vista? PinmemberOwen377:19 26 Jun '07  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 22 Jun 2007
Article Copyright 2007 by Madhu Rajagopalan
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid