Every time I hit the debug button in my IDE is create a new process running on the OS.
Is there a way to configure things so that only one JAVA process can be running on my OS at once when hitting the debug button?
What I know is if I hit the red stop button in the debugging panel that number will decrement. So long as I remember to stop before hitting the debug button each time I can manage the number of running processes. But this is easy to forget to do. In addition, once i have 5-10 running debug sessions it is very tedious to delete them all. I must go to Run->Show Running List
and a list of the "VM Connections" appear and I must delete them one by one. Often this UI component that lists them will simply disappear and I must pull it out again. Is there a way to end all of these processes at once?
You can't do it OS wide AFAIK, and you wouldn't want it to be that way; how many other Java processes may be running that aren't associated with your debug sessions?? (Intellij would be one of them)
What you can do is, in your run configuration settings, set one or more of your configurations to be "Single instance only"; it's a checkbox in the upper right-hand corner of the dialogue. That will force you to kill any running with that config before starting another.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With