Making sense of Sharepoint Errors

Below two pages describe how to enable the required keys in web.config to be able to see the actual error message in Sharepoint solutions.

Enabling the SharePoint Safe Mode Call Stack, Disabling Custom Errors and Enabiling Compilation Debugging
Making sense of SharePoint errors