To run or debug your plugin, you should create the corresponding Run/Debug configuration first.

To create a Run/Debug configuration for a plugin
  1. On the main menu, choose Run | Edit Configurations.
  2. In the Run/Debug Configuration dialog, click images/new.png, or press Insert, and select Plugin.
  3. Specify the settings as necessary and click OK.