Contents
Select the F5 key to run the project. Select the + New item button to add an item to the list. Provide a title for the item, and then select Save. The breakpoint that you added to the remote event receiver is hit, verifying that you’re debugging the remote event receiver.
How to debug a remote event in Visual Studio?
Select the F5 key to continue to run the project, and then stop debugging when you’re done. If you have a remote event in your project and have not configured remote event debugging, Visual Studio prompts you to configure remote event debugging (see the following figure).
What happens when a remote event is asynchronous?
Depending on the event, the remote event may be synchronous or asynchronous. It might take a few seconds or more to hit your breakpoint if it is asynchronous. You get the following error when your handler runs in production: “The remote event receiver callout failed.
How to enable debugging in Microsoft Azure service bus?
In the properties pane, open the SharePoint tab and scroll to the bottom. Select the check box for Enable debugging via Microsoft Azure Service Bus. Enter the complete connection string in the text box provided. You obtain the string with these steps.
Why do I need to debug feature event receivers?
Debug feature event receivers By default, when you run a Visual Studio SharePoint application, its features are automatically activated for you on 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.
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 application in Visual Studio, manually activate the feature in SharePoint.