In my custom language plugin compilation is implemented as recommended - jps-based builder.
When building before run I want to call a compiler with different settings for run and run with debugging.
For this during build I need to determine which Executor was used for running - "Debug" or "Run". How this can be achieved?
Build process is called in CompileStepBeforeRun. Should I create my own BeforeRunTaskProvider and pass needed data there or there is other way?