PyCharm remote debugging

I have remote Ubuntu server, and I'm trying set up remote debugging. Configured as shown here: http://blog.jetbrains.com/pycharm/2010/12/python-remote-debug-with-pycharm/

import sys
import pydevd
sys.path.append('/root/home/scripts/pycharm-debug.egg')
pydevd.settrace('my_remote_server_IP', port=51234,
stdoutToServer=True, stderrToServer=True)

I also connect remote host for synchronizing and uploading my python scripts to remote server. (Tools -> Deployment -> ...

When I start debugging:

C:\Python27\python.exe C:/Projects/python/demo.py
Could not connect to xx.xx.xx.166: 51234
Traceback (most recent call last):
  File "C:\Program Files (x86)\JetBrains\PyCharm 2.7.1\helpers\pydev\pydevd_comm.py", line 428, in StartClient
    s.connect((host, port))
  File "C:\Python27\Lib\socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 10061] ����������� �� �����������,

Process finished with exit code 1

How to solve this problem?
3 comments
Hi, there should be pycharm host IP instead of remote server IP as first argument of settrace function.
0
ok. I wrote my host ip (used 2ip.ru)

import sys
import pydevd
sys.path.append('/root/home/scripts/pycharm-debug.egg')
pydevd.settrace('my_host_ip', port=51234,
stdoutToServer=True, stderrToServer=True)

output:

C:\Python27\python.exe C:/Projects/python/demo.py
Could not connect to xx.xx.22.135: 51234
Traceback (most recent call last):
  File "C:\Program Files (x86)\JetBrains\PyCharm 2.7.1\helpers\pydev\pydevd_comm.py", line 428, in StartClient
    s.connect((host, port))
  File "C:\Python27\Lib\socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 10060] ������� ���������� ���������� ���� �����������, �.�. �� ������� ���������� �� ��������� ����� �� ������� ������ ������, ��� ���� ��������� ��� ������������� ���������� ��-

Process finished with exit code 1
0
I'd like to propose not to post the same things in 2 places (here and stackoverflow http://stackoverflow.com/questions/16105337/pycharm-remote-debugging).
0

Please sign in to leave a comment.