# Friday, September 25, 2009
« Interviewing Question of the Day: Virtua... | Main | Catching up is hard to do... »

If you'd like to redirect your page trace infomation to a file (which can be useful when you are trying to run down a problem and don't want the world to see your trace information during testing), it's as simple as this:

Add this to your web.config:

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

The key is the pageOutput="false" which tells the framework to redirect the trace info to the trace.axd file. To view the trace information, you just need to load the page in the browser, such as:

http://localhost:4774/trace.axd

This will allow you to see the trace history of any browsed files since the trace was started, as well as clearing the trace history. Just remember to remove this before you deploy (or make sure you compile in release mode!).

Comments are closed.