Debug process.
Hello.
Is it possible to debug created process? I have
enabled "Attach to subprocess..." option but it
write in console
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named pydevd
Also I'm aware of http://youtrack.jetbrains.com/issue/PY-5766.
Thanks in advance.
Is it possible to debug created process? I have
enabled "Attach to subprocess..." option but it
write in console
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named pydevd
Also I'm aware of http://youtrack.jetbrains.com/issue/PY-5766.
Thanks in advance.
Please sign in to leave a comment.
Assume simplest example
def printname(name):
print "hello " + name
if __name__ == '__main__':
p = Process(target=f, args=('bob',))
p.start()
p.join()
And I want to break in function printname. What should I do?
As a temporary solution I can recommend to add debugger runtime to the PYTHONPATH manually(<pycharm installation folder>\helpers\pydev).
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