You develop a feature in a SharePoint solution by using VisuaI Studio 2012. You insert several breakpoints in the feature event receiver to debug performance issues.
You need to ensure that the code stops running when the solution reaches a breakpoint
Which three actions should you perform in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order)
Select and Place:
Correct Answer:
Explanation/Reference:
Debugging Feature Event Receivers:
By default, when you run a Visual Studio SharePoint application, its features are automatically activated for you in the SharePoint server. However, this causes problems when you debug feature event receivers, because when a feature is activated by Visual Studio, it runs in a different process than the debugger. This means that some debugging functionality, such as breakpoints, will not work correctly.
To disable the automatic activation of the feature in SharePoint and allow proper debugging of Feature Event Receivers, set the value of the project’s Active Deployment Configuration property to No Activation before debugging. Then, after you start to debug your SharePoint appli cation in Visual Studio, manually activate the feature in SharePoint. To activate the feature, open the Site Actions menu in SharePoint, choose Site Settings, choose the Manage Site Features link, and then choose the Activate button next to the feature, to continue debugging as normal.