web.config Debug settings for development
December 18, 2008 Leave a comment
When developing in SharePoint, it is always a good idea to make a few changes to your web.config so that you can actually get some useful error messages when things do not go as planned.
To do so, locate the web.config for the web application you are working on (for example: C:\Inetpub\wwwroot\wss\VirtualDirectories\site.com80\web.config) and make the following changes:
- Locate CallStack="false" and set it to true: CallStack="true"
- Locate customErrors mode="On" and set that to Off: customErrors mode="Off"
- Locate compilation batch="false" debug="false", and then set those both to true: compilation batch="true" debug="true"
And that should do the trick to give you some useful debug messages in SharePoint!