Page Tracing

During the development stage, you may often need to monitor the value of some variables or functions, especially if they are not giving the correct results. Tracing through the codes is another important debugging method to make sure your codes flow in the intended manner.

ASP.NET provides tracing ability to easily map the flow of an application. In ASP, debugging is a painful process.You must often use the Response.Write() method to output the values of variables:

Dim i As Integer

Dim factorial As Integer factorial = 1 For i = 1 To 5

factorial *= i

Response.Write("value of i is " & i & "<br>") Response.Write("value of factorial is" & factorial & "<br>")



How often have you forgotten to remove the debugging statements after you have tracked the error and deployed your application?

0 0

Post a comment