Classic Asp Debug with Visual Studio 2017

Asked

Viewed 1,287 times

6

I don’t know anything about Classic SP and a demand has appeared where I have to debugging an application in Classic SP, because one of the filters is not working. And Response.write/Notepad++ won’t help me in this case, because I already know it’s the return of the method.

Does anyone know any way to debug the classic Asp in visual studio 2017 and IIS6 or 7?

Thank you.

1 answer

6


One way to debug would be to display a message and "kill" the code then so you will be sure that everything has run up to the snippet where you "killed", for example:

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

Another way is debugging with the Visual Studio, follows below a step by step how to make it:

  1. In the IIS allows server side debugging:

Click on your Web Site, click on ASP, in the "debugging properties" group on the line Enable server debugging place true and then click on apply. inserir a descrição da imagem aqui

  1. Open the project on Visual Studio, click on debug and then attach: inserir a descrição da imagem aqui

  2. Click on checkbox(View all users' processes) and select the w3wp, then click on attach: inserir a descrição da imagem aqui

    3.1 If you haven’t opened the Visual Studio as admin, reopen it with the correct settings and redo steps 2 and 3: inserir a descrição da imagem aqui

  3. Click on attach again: inserir a descrição da imagem aqui

  4. In the Solution Explorer you will view the classic ASP fonts attached to the IIS process, open the source you want to debug, put the breakpoint and access the specific source through the browser and ready: inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.