views:

141

answers:

5

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.

I have looked around and the only examples seem to be of debugging when the azure app is running on the local machine.

+2  A: 

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.

Craig Stuntz
+1  A: 

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 http://blogs.msdn.com/b/windowsazure/archive/2009/12/01/introducing-windows-azure-diagnostics.aspx http://blog.benday.com/archive/2008/11/07/23201.aspx

this is a great tool - http://www.cerebrata.com/Products/AzureDiagnosticsManager/Default.aspx

ashish jaiman
+4  A: 

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
Rinat Abdullin
+1 for Rinat's answer. Just one clarification: to take advantage of IntelliTrace, your roles must target .NET 4 (another new feature of the June 2010 release).
David Makogon
+1 for the reminder. Updated IntelliTrace reqs
Rinat Abdullin
A: 

http://msdn.microsoft.com/en-us/magazine/ee336122.aspx

This will help u..

+1  A: 

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.

Hope this helps.

Thanks

Gaurav Mantri