Tracing ASP.NET Applications

When you are developing ASP.NET applications, you have the ability to trace (or track) the state or progress of your application in real time. This is done through the Trace functionality of ASP.NET.

The usual way of doing this in Classic ASP applications was to include response.write() statements everywhere in your code. However, this technique has the following issues:

  • Performance impact— Due to more code in the web page, this means that the page takes longer to download.

  • Maintainability/Readability of code— Heavy use of the response.write() function in a web page’s code, which is not specific to the output of the application (debug stuff), can make the code very confusing to read initially and also to maintain. ...

Get Inside ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.