Debugging plugins in Intellij and PyCharm

I am developing my own plugin for PyCharm in the Intellij IDEA developer community.

I changed JREto PyCharmenter image description here

plugin.xmlFile changed

<idea-plugin version="2">
  <id>com.krupa.adrian.plugin</id>
  <name>Test plugin</name>
  <version>1.0</version>
  <vendor email="support@yourcompany.com" url="http://www.yourcompany.com">YourCompany</vendor>

  <description><![CDATA[
      Enter short description for your plugin here.<br>
      <em>most HTML tags may be used</em>
    ]]></description>

  <change-notes><![CDATA[
      Add change notes here.<br>
      <em>most HTML tags may be used</em>
    ]]>
  </change-notes>

  <!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
  <idea-version since-build="141.0"/>

  <!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
       on how to target different products -->
  <depends>com.intellij.modules.lang</depends>

  <extensions defaultExtensionNs="com.intellij">
    <!-- Add your extensions here -->
  </extensions>

  <actions>
    <!-- Add your actions here -->
    <action id="testButton"
            class="testButton">
      <add-to-group group-id="ToolbarRunGroup" anchor="last"/>
    </action>
  </actions>

</idea-plugin>

and created a class example for the button

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;

/**
 * Created by akrupa on 2016-02-04.
 */
public class testButton extends AnAction {
    @Override
    public void actionPerformed(AnActionEvent anActionEvent) {
        System.out.println("Debug message");
    }
}

Everything works fine, a button appears, logs are displayed.

Question:

I removed my test plugin from the settings-> plugins menu in PyCharm and now the plugin does not appear in PyCharm when I click Run in IDEA. How can I cancel this uninstall or another way to debug custom plugins?

+1
source share

All Articles