开启SharePoint 2010 调试Silverlight
On the SharePoint project, right-click the project and select Properties. From Property pages, select the SharePoint tab. At the bottom of the SharePoint tab, find and select the check box labeled Enable Silverlight debugging (instead of Script debugging).