PyCharm should terminate Run/Debug instances when exiting


PyCharm should automatically terminate any Run/Debug instances when exiting or restarting.

As far as I remember, PyCharm used to do this, but sometime I think in 2017 it stopped doing it.

I am typically debugging a web server process (a WSGI app served by waitress). When I stop the process in PyCharm by clicking the stop button, it terminates fine.

However if I leave it running and simply exit or restart the app, it leaves the "zombie" process behind and it has to be manually killed.

It would be nice if PyCharm had an option to automatically terminate running process upon exit. Anyone else run into this?


Fortunately it looks like this was fixed in 2017.3.3. When closing PyCharm I now get a prompt to terminate the running process. Thanks!


Leaves a zombie process when I close the window.


Still a problem in 2018.1 - leaves processes running still. They are not Zombies though they just show as sleeping.


2018.1 is pretty outdated version, you should try the latest:


Please sign in to leave a comment.