Run Configuration has debug disabled only in PyCharm CE Follow
Hello there,
I am building a Run Configuration plugin for PyCharm, and I want both Run and Debug actions available. I started out with the Plugin template and then followed the instructions scattered around here and got to a point where my RunConfiguration class inherits `ModuleBasedConfiguration` and implements `org.jetbrains.debugger.DebuggableRunConfiguration`.
Now, the Run and Debug buttons are both enabled on the toolbar when I test my plugin (via the Run Plugin gradle task), and also when I install the plugin to a PyCharm Professional instance (via the Install Plugin from Disk dialog). However, when I install the plugin to a PyCharm CE instance I have, only the Run button is available – the Debug button is disabled.
Is there something I need to do to specifically allow debugging via PyCharm CE?
Here is my plugin.xml file:
<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html -->
<idea-plugin>
<!-- Unique id for this plugin. Must stay constant for the life of the plugin. -->
<id>...</id>
<!-- Text to display as name on Preferences/Settings | Plugin page -->
<name>...</name>
<!-- Text to display as company information on Preferences/Settings | Plugin page -->
<vendor url="...">V</vendor>
<!-- Product and plugin compatibility requirements -->
<depends>com.intellij.modules.platform</depends>
<depends>com.intellij.modules.python</depends>
<depends>com.intellij.modules.pycharm.community</depends>
<depends>com.intellij.modules.xdebugger</depends>
<extensions defaultExtensionNs="com.intellij">
<configurationType implementation="plugins.env.runConfiguration.MyVRunConfigurationType" />
</extensions>
</idea-plugin>
Any help will be much appreciated,
Ben
Please sign in to leave a comment.
Hi Ben,
I don't see what can be the reason.
I suggest debugging com.intellij.execution.ExecutorRegistryImpl.ExecutorAction#canRun() method to see why it is disabled for Debug button.