Run Configuration has debug disabled

Hello,

I'm writing a plugin with a RunConfiguration that runs a jar. I'd like to run it in debug mode, but the debug button is disabled.


Some info on my configuration. 
I do have a Runner registered in the plugin.xml that extends DefaultProgramRunner

My run configuration extends RunConfigurationBase.

The getState method of my run configuration returns a new JavaCommandLineState (see this question to see more details on my JavaCommandLineState implementation).

How to enable the debug button and attach a debuger when I start the jar?

0
2 comments
Avatar
Permanently deleted user

First of all ensure you have proper implementation of method

canRun(@NotNull final String executorId, @NotNull final RunProfile profile)
0
Avatar
Permanently deleted user

So, it seems that the

RunConfigurationBase

was the problem. I extended

ModuleBasedConfiguration

and now I do have the debug button enabled. I can't get why!

0

Please sign in to leave a comment.