PyCharm 2020.1 Remote Debugging using .egg File

Hi PyCharm,

Im using PyCharm version 2020.1 on windows 10 hosting my IDE and PyCharm Debug Server, and also connecting remote code located on a CentOS machine.  

I'm getting the following error when using an IP address from netstat:

import pydevd_pycharm
pydevd_pycharm.settrace('', port=8081, stdoutToServer=True, stderrToServer=True)

python3.6/site-packages/_pydevd_bundle/", line 451, in start_client
s.connect((host, port))
socket.timeout: timed out

The interesting thing is if i use localhost instead of real ip address im getting a different error:

python3.6/site-packages/_pydevd_bundle/", line 451, in start_client
s.connect((host, port))
ConnectionRefusedError: [Errno 111] Connection refused

Does anyone know why this is happening?  I also noticed in version 2020.1 there is no .egg file like some of the tutorials point out.  I did copy the 2019 egg file into my CentOS directory along with my code and put in my path.

Is there a different step i need to take when using version Pycharm version 2020.1?




1 comment
Comment actions Permalink


I wouldn't recommend using egg file from a different IDE version. It can work but may lead to unpredicted outcome later on.

I just checked and the egg file is where it should be, under <IDE_ROOT>\debug-eggs folder.

Also, you could install pydevd-pycharm instead of using egg file, but that's not necessary.

Looking at the error message you provided, it seems the script cannot connect to the debug server. Make sure it's accessible from that machine.


Please sign in to leave a comment.