If your test SharePoint farm is not on the same computer that is running Visual Studio (or you are using a SharePoint Online tenancy as your test SharePoint site), configure the project for debugging by using the Microsoft Azure Service Bus. For more information, see the Debug and troubleshoot a remote event receiver in a SharePoint Add-in.