If you need to display SharePoint errors during developing, open up your Web.Config file, edit this tags so they look like:
<customErrors mode="Off" />
<SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10"
TotalFileDependencies="50" AllowPageLevelTrace="false">
<compilation batch="false" debug="true">