[Memo] how to analyze Azure SDK debug information - IntelliTrace

[Memo] how to analyze Azure SDK debug information - IntelliTrace


Ruddy teachers have said we must do unit testing before the Azure!

In addition to ensuring stable function, you can also save a lot of time to deployment

If the system on-line parameter setting problem, then engage in something

Because the error message can not make out

The first to use this function has several prerequisites!

○, you must have VS 2010 Ultimate version

First, the VS 2010 must be deployed on Azure

       Initial reference can use VS 2010 MVC subordinates on 3 Windows Azure

Second, it must be 4.0 or later .NET Framework

Third, when deploying to select the Enable IntelliTrace for .NET 4 role

There are pictures in the era of resemblance, any error should capture down. But ... (Khan)

image

Only to say Runtime Error, others have nothing! Like this how do you know what is wrong!

After this time you can use Windows Azure Explorer, open the deployment of WebRole can see there Instance X

image

After selecting "View IntelliTrace logs", the tool will help you download files from the Log Azure

image

Once downloaded it will open the Log IntelliTrace

image

From the "exception data" can be seen in the list of errors, there are so many SqlClient SqlException error I know it must be a problem with the program or set Orz

These suspicious looking down on the point

image

Uh! From the Call Stack can be seen in the establishment of the connection and hung up! But also died in DBConnection

From the regional variables can also see incoming Connection String, I found the whole is wrong.

After modification you can normally see the system on Azure up!

It is not very save a lot of time debugging

If the former Log in addition to write their own outside, almost no way did it.

image

The downloaded file will be unified in here!

Reference data

Use IntelliTrace and Visual Studio debugging issued loaded service

http://msdn.microsoft.com/zh-tw/library/ff683671.aspx

Manage your Azure Roles - With Service Management API

http://www.dotblogs.com.tw/code6421/archive/2010/06/09/15741.aspx

Original: Large column  [Memo] how to analyze Azure SDK debug information - IntelliTrace


Guess you like

Origin www.cnblogs.com/petewell/p/11495545.html