Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application Debugging is disabled in Visual Studio 2012 on Classic ASP Debugging

I'd like to debug Classic ASP website at Visual Studio 2012 with IIS Express. Hence, I attached the iisexpress.exe in VS 2012, but it shows Application Debugging is disabled. What could be a problem ? Do I want to enable any configuration settings?

enter image description here

like image 321
Smaug Avatar asked Nov 04 '13 02:11

Smaug


2 Answers

First of all you need to enable server side debugging of classic ASP script. Do this by running the following commands:

"C:\Program Files (x86)\IIS Express\appcmd.exe" set config "[YOUR_SITE_NAME]" -section:system.webServer/asp /appAllowClientDebug:"True" /appAllowDebugging:"True"  /commit:apphost

Where [YOUR_SITE_NAME] is the name of your website. You can find this name by opening up:

%USERPROFILE%\Documents\IISExpress\config\applicationhost.config 

...and searching for your site.

Next, start an IIS Express instance from the command line:

"C:\Program Files (x86)\IIS Express\iisexpress.exe" /config:c:\users\kevin\Documents\IISExpress\config\applicationhost.config /site:"[YOUR_SITE_NAME]" /apppool:"Clr2IntegratedAppPool"

Again, [YOUR_SITE_NAME] is the name of your IIS Express website.

Then attach Visual Studio 2012's debugger and set a breakpoint in the script you wish to debug. Browse to your site/script and your should see the breakpoint light up:

enter image description here

like image 79
Kev Avatar answered Sep 19 '22 18:09

Kev


Go to IIS-->ASP-->Debugging properties -->enable client and server side debugging

then attach w3wp process from VS2012

like image 43
suman Avatar answered Sep 20 '22 18:09

suman