I am not an expert in Indesign, but I think it works the same like in other programs:
- Register your plugin in Indesign;
- Let Visual Studio start the InDesign executable when debugging: change the Project Settings > Debug > Start External Program path to the path of the Indesign executable.