How to get list of currently running run/debug configurations

I want to get the list of all the currently launched run/debug configs to display them in a view.
However, I am not sure which api to use to get that.

1 comment
Comment actions Permalink

You can use
ExecutionManager.getInstance(project).getContentManager().getAllDescriptors()
method, then to check descriptor.getProcessHandler().isProcessTerminated() on the returned items to filter out terminated processes.

--
Nikolay Chashnikov
JetBrains
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.