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:
- 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.
Open the project on Visual Studio, click on debug
and then attach
:
Click on checkbox
(View all users' processes) and select the w3wp
, then click on attach
:
3.1 If you haven’t opened the Visual Studio as admin, reopen it with the correct settings and redo steps 2 and 3:
Click on attach
again:
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: