Debugging Windows Azure Application with IntelliTrace

  Microsoft introduced IntelliTrace in the Visual Studio 2010 Ultimate Edition, and was previously called Historical Debugger, since it provides a way to debug historical data, because it provides a way to save information needed to provide a Debugging capabilities even if we aren’t using live code, or capable to reproduce a specific behavior.

   This capability is very important when we use it locally on our machines, but when we look at the Cloud where we don’t know what’s really happening this is much more important, and so this is how we can use IntelliTrace to Debug Windows Azure Roles.

1. Publish our Cloud Service and define that it should have IntelliTrace enabled.

PublishingWithIntelliTrace

2. After that, we should specify exactly what we want to be logged by IntelliTrace so we can analyze it afterwards.

ChooseIntelliTraceSettings

     3. Now select the elements you need.

IntelliTraceGeneralSettings

      • “IntelliTrace events only” and “IntelliTrace events and call Information” this defines exactly what you need in terms of information, if only the events are enough or if you need to have the call stack and variable values and so on.

4. Select which modules to Log

IntelliTraceModuleSettings

5. Select which processes to log

IntelliTraceProcessesSettings

6. Select the Events we would like to be logged and used by IntelliTrace

IntelliTraceIntelliTraceEventsSettings

7. Select the maximum amount of disk space that can be used by IntelliTrace

IntelliTraceIntelliTraceAdvancedSettings

8. Now that all settings is in place just publish it

PublishWithIntelliTrace

  Now just wait for it to be published

Publishing

  Now that it’s already published and running let’s analyze the IntelliTrace Logs

1. Open the Server Explorer and check that you have the recently installed environment with IntelliTrace

ServerExplorer

2. Now select an instance and right-click on it and select the View IntelliTrace Logs option

ViewIntelliTraceOption

3. Now just wait for the Logs to be downloaded

IntelliTraceLogsDownload

4. When the logs are downloaded you’ll get a summary of your IntelliTrace logs like this

IntelliTraceSummary

    • This IntelliTrace summary has information about:
      • Threads that are being used
      • Exception Data list
      • System Information
      • Modules Loaded

5. Now just select the Start Debugging button to start using IntelliTrace

StartDebugging

6. Don’t for forget to show IntelliTrace windows for Events and Calls

OpenIntelliTraceWindows

 

Hope this helps you to know better what’s happening with your Windows Azure Cloud Services.

No Comments