Search code examples
debuggingvisual-studio-2012asp-classiciis-express

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


Solution

  • I don't have visual studio 2012 to test it on as far as I know visual studio cannot debug asp classic code natively. The way I debug my asp classic code is to put in stop statements on the line above the one I want to debug like this post says. the break point is just typing in stop.

    function DoDate(inp)
       stop
    if isnull(inp) then
        DoDate = "Never"
        exit function
    end if  
    

    In the above example the page when loaded will stop at the breakpoint and pop up a dialog asking if you would like to debug it, you can then step through the function and even see variables like you normally would.

    note: The link says visual studio 2005 but it also works in 2010(and should also work in 2012), you also do not need the DEBUG extension.

    also ensure you have server side debugging activated in IIS or this will not work.