Debugging Cloud Services
You can use different approaches to debug a Windows Azure application by using the Windows Azure Tools for Microsoft Visual Studio and the Windows Azure SDK:
You can debug a Windows Azure application from Visual Studio when you are developing it, just as you would any Visual C# or Visual Basic application. For more information, see Debugging a Cloud Service in Visual Studio.
You can use Windows Azure Diagnostics to log detailed information from code running within roles, whether the roles are running in the development environment or in Windows Azure. For more information, see Collecting Logging Data by Using Windows Azure Diagnostics.
If you are using Visual Studio Ultimate to write roles targeted at the .NET Framework 4 or the .NET Framework 4.5, you can enable IntelliTrace at the time that you deploy a Windows Azure application from Visual Studio. IntelliTrace provides a log that you can use with Visual Studio to debug your application as if it were running in Windows Azure. IntelliTrace collects information for your Windows Azure roles. The virtual machines for these roles always run 64-bit operating systems. If you have Visual Studio 2010 Ultimate installed on a machine that runs a 32-bit operating system, you must install this required hotfix to install the 64-bit IntelliTrace components. For more information, see Debugging a Published Cloud Service with IntelliTrace and Visual Studio.