Unable to connect with the debugger
I am trying to debug python code. When I just select "Run Server", the website will startup and work fine. However if I try to debug it by selecting Debug 'Run Server' I get the following error. I've tried all sorts of things but no luck.
"C:\Program Files (x86)\JetBrains\PyCharm 2016.2.3\bin\runnerw.exe" mypath\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 2016.2.3\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 63988 --file customPath/manage.py runserver 8000 --insecure
pydev debugger: process 9692 is connecting
Connected to pydev debugger (build 162.1967.10)
Could not connect to 127.0.0.1: 63989
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 2016.2.3\helpers\pydev\pydevd.py", line 1572, in <module>
debugger.connect(host, port)
File "C:\Program Files (x86)\JetBrains\PyCharm 2016.2.3\helpers\pydev\pydevd.py", line 319, in connect
self.initialize_network(s)
File "C:\Program Files (x86)\JetBrains\PyCharm 2016.2.3\helpers\pydev\pydevd.py", line 311, in initialize_network
time.sleep(0.1) # give threads time to start
KeyboardInterrupt
Process finished with exit code 1
Please sign in to leave a comment.
Looks like I had to delete the .idea folder and restart PyCharm. It was something inside the workspace.xml file that was causing the issue.