Debugging deployed azure app
Is it possible to attach to a deployed Azure app? I would like to be able to step through the code so that I can see what values are being set in a request to one of my web role actions.
开发者_如何学PythonI have looked around and the only examples seem to be of debugging when the azure app is running on the local machine.
Windows Azure Tools (June 2010) allows to use IntelliTrace in the cloud. This release:
Adds support for debugging services in the cloud by using the Visual Studio 2010 IntelliTrace feature. This is enabled by using the deployment feature, and logs are retrieved through Server Explorer.
IntelliTrace support requires:
- .NET 4
- Visual Studio 2010 Ultimate
- the cloud service has to be deployed with IntelliTrace enabled
No, you can't debug an Azure app running on MS's servers.
You might be able to solve your problem with Azure's logging feature, though.
Edited to add MS just announced IntelliTrace for the cloud fabric in the June 2010 tools.
Adding one more thing to Rinat's answer: I did attend a session on Intellitrace and one of things I was told that it should never be used on your applications running in production slot as it creates quite an overhead. So you may want to deploy your application in staging slot do all the cloud debugging and then remove Intellitrace once you find the cause of your problems.
Craig is right "today" you cannot debug an Azure App running on cloud fbaric, you can only debug on local fabric. you may want to look at the diagonostic and logging API Link http://blog.benday.com/archive/2008/11/07/23201.aspx
this is a great tool - http://www.cerebrata.com/Products/AzureDiagnosticsManager/Default.aspx
http://msdn.microsoft.com/en-us/magazine/ee336122.aspx
This will help u..
There is a way to deploy the Visual Studio 2012 remote debugging tools to a Windows Azure Cloud Service and attach to the remote process. The following BLOG post explains an approach. http://www.fullscale180.com/Blog/post/2012/10/07/Remote-Debugging-Windows-Azure-Cloud-Services-with-Visual-Studio-2012.aspx
This sample code demonstrates remotely debugging Windows Azure Cloud Services with Visual Studio 2012. The sample utilizes Visual Studio 2012 remote debugging tools and provides an approach to deploy these tools with a cloud service, allowing us to attach to the deployed instance from the Visual Studio 2012 IDE using the remote debugging features.
精彩评论