How to get more information about the exceptions that can happen in SharePoint 2010 projects?

In case there is an exception anywhere in the SharePoint 2010 project (most common place an exception would happen is during deployment of your SharePoint project, custom deployment configuration or custom deployment steps),  there’s a registry key EnableDiagnostics available for you to use. This DWORD registry key enables exception stack trace and type name logging which will be displayed in the Output window when exception occurs. Apart from using this to troubleshoot deployment, it can also be a tremendous help when you’re troubleshooting extensions. In order to use this functionality you need to restart Visual Studio 2010 once you set the registry key.

Here’s the registry entry to enable diagnostics:

 Windows Registry Editor Version 5.00 
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\SharePointTools] 

"EnableDiagnostics"=dword:00000001 

Peter Jausovec