Comment actions Permalink
This depends on how your created process is started. In your case, it looks like it doesn't inherit the PYTHONPATH from the base process, and therefore it can't find the debugger runtime.
Comment actions Permalink
Thank you for reply. And how PYTHONPATH inheritance can be done?
Assume simplest example

def printname(name):
     print "hello " + name

if __name__ == '__main__':
    p = Process(target=f, args=('bob',))

And I want to break in function printname. What should I do?
Comment actions Permalink
Hi, that is a known problem on Windows http://youtrack.jetbrains.com/issue/PY-6649, vote for the issue to get notified, when it will be fixed.
As a temporary solution I can recommend to add debugger runtime to the PYTHONPATH manually(<pycharm installation folder>\helpers\pydev).
Comment actions Permalink
I've added this environmnet variable (edit configuration->...)
and got this exception:

pydev debugger: process 800 is connecting
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\Program Files\JetBrains\PyCharm 2.5.2\helpers\pydev\pydevd.py", line 2, in <module>
    from django_debug import DjangoLineBreakpoint
  File "c:\Program Files\JetBrains\PyCharm 2.5.2\helpers\pydev\django_debug.py", line 3, in <module>
    from pydevd_comm import CMD_SET_BREAK
  File "c:\Program Files\JetBrains\PyCharm 2.5.2\helpers\pydev\pydevd_comm.py", line 76, in <module>
    from socket import AF_INET, SOCK_STREAM
ImportError: cannot import name AF_INET

Please sign in to leave a comment.