.NET     Console.WriteLine( "All Things .NET" );
.NET Nerd Blog Home
3.12.2002

 

ASP.NET Tracing



Easy, but powerful. Add Trace.Write( "foo" ); somewhere in your code-behind page, and then turn on trace output in the web.config file.

<trace
enabled="true"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>


Now browse to your application root directory, for the file named trace.axd. In the details for the given page, under "Trace Information", you will see your trace output, along with timings.


Comments: Post a Comment

Powered by Blogger