Debugging Cloud Services
Updated: August 15, 2014
You can use different approaches to debug an Azure application by using the Azure Tools for Microsoft Visual Studio and the Azure SDK:
You can debug an 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 or Virtual Machine in Visual Studio.
You can use Azure Diagnostics to log detailed information from code running within roles, whether the roles are running in the development environment or in Azure. For more information, see Collecting Logging Data by Using 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 an Azurecloud service from Visual Studio. IntelliTrace provides a log that you can use with Visual Studio to debug your application as if it were running in Azure. IntelliTrace collects information for your 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.
You can enable remote debugging on your cloud services at the time when you deploy the cloud service from Visual Studio. If you choose to enable remote debugging for a deployment, remote debugging services are installed on the virtual machines that run each role instance. These services, such as msvsmon.exe, do not affect performance or result in extra costs.