In order to enable debugging in SharePoint 2010 we need to made a few changes to the web.config file.
Replace
< SafeMode MaxControls = "200" CallStack = "false" DirectFileDependencies = "10" TotalFileDependencies = "50" AllowPageLevelTrace = "false" > |
with
< SafeMode MaxControls = "200" CallStack = "true" DirectFileDependencies = "10" TotalFileDependencies = "50" AllowPageLevelTrace = "false" > |
Replace
< customErrors mode = "On" /> |
with
< customErrors mode = "Off" /> |
Replace
< compilation batch = "false" debug = "false" > |
with
< compilation batch = "false" debug = "true" > |
This will turn an exception looking like this

into this

into this
No comments:
Post a Comment