Easy way to redirect ASP.NET trace to Visual Studio Output Window

The ASP.NET trace information can be very useful, however there are cases when you don’t want (or can’t – partial rendering) have the trace information rendered on the page. However, all is not lost, you can redirect the information to VS’ output window by changing (or adding) the web.config trace element with writeToDiagnosticsTrace, e.g…
<trace writeToDiagnosticsTrace="true" enabled="true" pageOutput="false" requestLimit="20" />

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s