Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

pycharm

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"

like image 306
James Franco Avatar asked May 26 '16 05:05

James Franco


People also ask

How do you stop a running process in PyCharm?

on the toolbar, or press Ctrl+F2 .

How do I close PyCharm in terminal?

on the Terminal toolbar or right-click the tab and select Close Tab from the context menu.


1 Answers

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.

like image 101
Vasif Avatar answered Oct 05 '22 23:10

Vasif