As Silverlight is not a integral part of CRM platform , its very cumbersome to keep track of error and debugging custom codes.
So to debug a Silverlight application for CRM 2011 we need to follow certain steps as given below :
1.Build the silverlight application and set the breakpoint to the code where its required.
2.Move to Tools menu ->Attach to Process.A dialogue will come up, identify the IE process having ‘Silverlight ,x86 ‘ type and attach to this process.
3. Run the CRM application and open the form which has reference to the silverlight application and we will be able to bebug the code.