
Configuring Debugging and Tracing
You must have Administrative credentials on the computer where the Web application runs to change its debugging and tracing settings.
To manage the debugging and tracing features, clickConfigure debugging and tracing, and then set the following options:
Enable Debugging
Select this option to enable debugging for all pages in the Web site.
Capture tracing information
Select this option to enable tracing for all pages in the Web site. If this check box is selected, the remaining options on the page are enabled.
If you have set the option to capture tracing information, you can make the following choices:
Display tracing information on individual pages
Select this option to append tracing information to the bottom of Web pages on your site. If you do not display tracing information about individual pages, the information is still captured. To view trace information, you can request the Trace.axd page for the Web site, which acts as a tracing information viewer.
Local requests only
Select this option to view trace information only for request from the host Web server (localhost).
All requests
Select this option to view trace information from any computer.
Under Select the sort order for trace results, specify how you want to display trace information, as follows:
By time
Select this option to display trace information in the order that it is captured.
By category
Select this option to display trace information alphabetically within user-defined categories.
Number of trace requests to cache
Enter the number of trace requests to store on the server. You can view cached information by using the trace viewer (http://server/application/trace.axd). The default is 10. If you do not select the Most recent trace results option, and the limit is reached, trace is automatically disabled.
Under Select which trace results to cache, specify how you want to display trace output, as follows:
Most recent trace results
Select this option to display the most recent trace output and to discard older trace data beyond the limits that are indicated by Number of trace requests to cache.
Oldest trace results
Select this option to display trace data for requests until Number of trace requests to cache is reached.
Note: |
|---|
When you are finished troubleshooting the Web site, disable debugging and tracing to get maximum performance from your Web application.
|
Security Note: |
|---|
When tracing is enabled for a page, trace information might appear on any browser that makes a request for the page from the server. Because tracing displays sensitive information, such as the values of server variables, it can represent a security threat. Make sure that you disable page tracing for the page before publishing the Web application to a production server.
|
To configure a custom error page for the Web site, clickDefine default error page and then specify the following:
Use the default error message
Select this option to use the default error page.
Specify a URL to use as the default error page
Select this option to use a custom error page, and then choose the page to use.