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 --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 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
  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

Process finished with exit code 1

1 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.


Please sign in to leave a comment.