Enabling ASP Debugging
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1
Important
For security and performance reasons, do not enable debugging in a production environment.
You can set debugging options for ASP pages and control which types of error messages are sent. In order to enable debugging for ASP pages in worker process isolation mode, you must also configure the Access permissions and the Launch permissions for the debugger.
Important
You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /User:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".
Procedures
To enable ASP debugging
In IIS Manager, double-click the local computer, right-click the Web Sites folder or an individual Web site folder, and then click Properties.
Note
Configuration settings made at the Web Sites level are inherited by all of the Web sites on the server. You can override inheritance by configuring the individual site or site element.
Click the Home Directory tab, and then click Configuration.
Click the Debugging tab, and then select the Enable ASP server-side script debugging check box.
Click Send detailed ASP error messages to client if you want to send the client very detailed debugging information, or click Send the following text error message to client and type the text you want to send to the client.
Click OK.
Because the worker process identity runs as the Network Service account in worker process isolation mode, you must follow these directions to debug ASP applications.
Note
It is recommended that you do not change the worker process identity to run as LocalSystem.
To configure Launch and Access permissions to enable ASP debugging in worker process isolation mode for Script Debugger and Visual InterDev
If you haven't done so already, install Microsoft® Script Debugger or Microsoft Visual InterDev® debugger.
From the Start menu, click Run, and then type the following: dcomcnfg
In the Console Root file, double-click Component Services, double-click Computers, double-click My Computer, and double-click DCOM Config.
Right-click Machine Debug Manager and then click Properties.
Click the Security tab.
Under Launch Permissions, click Edit, click Add, type Network Service, and then click OK. If you are joined to a domain, you might need to click Locations and change the location to the local computer.
Under Access Permissions, click Edit, click Add, type Network Service, and then click OK. If you are joined to a domain, you might need to click Locations and change the location to the local computer.
Click OK to apply the changes.
Note
To enable ASP debugging for Microsoft Visual Studio® .NET, you must add the Network Service account to the Debugger Users group.
Related Information
For more information about the Microsoft Script Debugger tool, see Microsoft Script Debugger on MSDN® Online.
For more information about debugging in Visual Studio, see Adding Debugger Users and Configuring DCOM.