Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,
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 cloud 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 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.
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.
In This Section