Friday, June 22, 2007

Debugging Classic ASP in Visual Studio 2005

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 few stuff and finally figured it out. Here are the steps:
  • 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 .asp files.
  • Create a virtual directory in IIS for the web application project you created.
  • On the properties tab of the virtual directory in IIS do the following:
  • Click Configuration button.
  • On the Mappings tab, select .asp and click Edit
  • Add the DEBUG verb and click OK.
  • Go to Debugging tab.
  • Enable the ASP debugging and Client Side Debugging, Save the changes.
  • Load the web application project and set the breakpoint in the 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 break point will bind now.

Happy Coding,

Madhu

1 comment:

Anonymous said...

[url=http://ivlkrwnnz.com]yCFmwYtXrNYa[/url] - QbXDpAw - http://hhmgziigpu.com