Monday, June 1, 2009

Turn on debugging options in SharePoint for development



Whenever you perform any SharePoint development turn of the native SharePoint error trapping and enable debugging. Once you have done this you will see full stack traces instead of the SharePoint error screens.


<SafeMode MaxControls="200" CallStack="false" ...> <!-- Becomes -->
<SafeMode MaxControls="200" CallStack="true" ...>

<customErrors mode="On" /> <!-- Becomes -->
<customErrors mode="Off" />

<compilation batch="false" debug="false"> <!-- Becomes -->
<compilation batch="true" debug="true">

No comments:

Post a Comment