James Franco
James Franco

Reputation: 4706

Pycharm : How to forcefully stop a server if it is already running

Is there a way for me to tell pycharm that

"start the debug server and if its already running then stop it and run it again"

Upvotes: 7

Views: 11933

Answers (1)

Vasif
Vasif

Reputation: 1413

One for sure way if you are on Linux/Mac is to go to terminal and do ps -eaf| grep python. And kill the processes manually by kill -9 <pid>. ( where <pid> is the process id - number printed against the python process)

I don't use pycharm. I use sublime text. ST also has similar issues and I kill the python processes that go into unending while loops this way.

On Windows, stopping python.exe from task manager should do the trick.

Upvotes: 11

Related Questions