How do you debug a remote event receiver?

How do you debug a remote event receiver?

After you add an RER or add-in event handler to a SharePoint Add-in project in Visual Studio, right-click the project in Solution Explorer and select Properties. 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.

How do I make an event receiver?

Once the project got created, we can add the event receiver into the solution. Open solution explorer, To add the event receiver right click on project name -> Add -> New Item. Select the “Event Receiver” in the “Add New Item” page. In the Name field give a proper name for the event receiver.

How to debug a remote event receiver in SharePoint?

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).

How to enable remote event receivers in Visual Studio?

Copy it to the clipboard and return to Visual Studio. Right click on the project name RERDemo and choose the project properties. Go to the SharePoint section, then at the bottom click the tick – Enable debugging via Microsoft Service Bus, paste the connection string to the clipboard.

Do you need Office 365 for remote event receivers?

Select the App for SharePoint template. Remote event receivers are supported only by Provider-hosted applications, that is why we choose this type. To create the application, we also need an account in Office 365 (you can purchase a licensed version from the developer, or use a 30 days trial).