Classic Asp debug with visual studio 2017

4

I do not know anything of classic asp and appeared a demand where I have to do debugging of a classic asp application, since one of the filters are not working. And the response.write / notepad ++ will not help me in this case, because I already know it's the return of the method.

Does anyone know of any gambiarra to debug classic asp in visual studio 2017 and IIS6 or 7?

Thank you.

    
asked by anonymous 08.05.2018 / 19:15

1 answer

5

One way to debug is to display a message and then "kill" the code, so you will be sure everything has been executed up to the time you "killed" it, for example:

Response.Write "Rodou até aqui"
Response.End

Another way is debugging with Visual Studio , here is a step-by-step how to do it:

  • IIS allows debugging on the server side:
  • Click Web Site , click ASP , in the "debugging properties" group on the Enable server debugging > true and then click apply .

  • Open the project in Visual Studio , click debug and then attach :

  • Clickthecheckbox(Viewallusersprocesses)andselectw3wp,thenclickattach:

    3.1IfyoudidnotopenVisualStudioasadmin,reopenitwiththecorrectsettingsandredosteps2and3:

  • Clickattachagain:

  • InSolutionExploreryouwillseetheclassicASPfontsattachedtotheIISprocess,openthesourceyouwanttodebug,putbreakpointandaccessthespecificsourcethroughthebrowserandready:

  • 17.05.2018 / 16:22