FAQ: How do I turn on debugging for error messages?

Version: AbleCommerce 7.x Asp.Net

Last Update: 3/16/10

 

 

How do I turn on debugging for error messages?  By making a simple change to the web.config file.

By default, any page that would normally return an unfriendly error will display a custom error page instead.  During development, or when troubleshooting technical issues, you should turn off the custom error page and enable debugging.

Enabling debug will affect website performance.  You should disable debug when finished.

 

To Enable Debug

In the root folder of your AbleCommerce installation, find the "web.config" file.  Open it in a text editor.

 

Turn Off Custom Error Messages

You will need to disable the friendly error page first.

  1. Find the following lines of code starting around Line 33:
     

<customErrors mode="On" defaultRedirect="~/Errors/GeneralError.aspx">

<error statusCode="404" redirect="~/Errors/PageNotFound.aspx" />

</customErrors>
 

  1. Change the customErrors mode to Off as shown in red:
     

<customErrors mode="Off" defaultRedirect="~/Errors/GeneralError.aspx">

<error statusCode="404" redirect="~/Errors/PageNotFound.aspx" />

</customErrors>

 

Turn On debugging

Next, you will need to turn on debugging and trace.

  1. Find the next section of code starting around Line 88:
     

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

<compilation debug="false" strict="false" explicit="false">
 

  1. Change trace enabled and compilation debug to a value of true as shown in red:
     

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

<compilation debug="true" strict="false" explicit="false">

 

Enabling debug will affect website performance.  You should disable debug when finished.

 

 

Copyright © 1994 - 2023 AbleCommerce.com, All rights Reserved | Privacy Policy

A division of Able Solutions Corporation, headquarters located in Vancouver, WA