problem with get debug configuration
Hi all, sorry for my bad English.
I write plugin and have a problem. I needing to get follow parametr HOST and PORT from Remote configuration, but how to this make? In IDEA OPEN API i dont found needing methods, please tell me where i can this look, or give me please sample examples.
THank you!
请先登录再写评论。
You can obtain all Remote run configurations using the following code:
RunManager.getInstance(project).getConfigurations(RemoteConfigurationType.getInstance())
Then select a desired configuration from the returned array, cast it to RemoteConfiguration and use PORT and HOST field.
Note that RemoteConfigurationType and RemoteConfiguration classes aren't part of the Open API so use they at your own risk. Also you need to add
idea.jar to the IntelliJ IDEA SDK used by your plugin module.
>
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
So, thank you for replies, but i get parametrs following method: