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

前端 未结 4 1040
情书的邮戳
情书的邮戳 2020-12-31 20:20

I\'d like to debug Classic ASP website at Visual Studio 2012 with IIS Express. Hence, I attached the iisexpress.exe in

4条回答
  •  忘掉有多难
    2020-12-31 20:50

    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

提交回复
热议问题