Tracing Your Web Application's Activity

Tracing is a new feature of ASP.NET that enables you to monitor the activity of your application as it runs. Tracing requires three steps:

1.
Equipping a page for tracing
2.
Turning tracing on
3.
Executing your Web application in Trace mode

When you have gone through these three steps, you'll be able to see the results of the execution of each line of code on each page of your ASP.NET application.

Equipping a Page for Tracing

Any ASP.NET pagecan can run in Trace mode. In fact, you technically don't have to explicitly equip a page for tracing to derive benefit from Trace mode. But equipping a page for tracing enables you to insert custom markers in the trace output, so it's common to include them in ...

Get C#® Developer's Guide to ASP.NET, XML, and ADO.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.