I am trying to do remote debug with PyCharm+Pydevd on python code.
The code I try to remote debug is below:
#!/usr/bin/python
import eventlet
eventlet.monkey_patch()
def main():
import pydevd
pydevd.settrace('10.84.101.215', port=11111, stdoutToServer=True, stderrToServer=True)
print "Done"
if __name__ == '__main__':
main()
Please note that if I comment the line
eventlet.monkey_patch()
The remote debug will work. If I change the line to
eventlet.monkey_patch(os=False, thread=False)
The remote debug will also work.
But I can not do that, because this will break some other logic.(I am trying to remote debug openstack neutron. The above code is just a sample to describe my question)
Also I have done something after google this issue, I will paste them here although they are not fixing my issue.
1. In PyCharm do below setting
setting -> Build,Extension,Deployment -> Python Debug -> Gevent Compatible (Check)
2. In PyCharm do below change
Edit the file
C:\Program Files (x86)\JetBrains\PyCharm 2016.1.4\helpers\pydev_pydevd_bundle\pydevd_constants.py
Replace SUPPORT_GEVENT=False to SUPPORT_GEVENT=True
I know this is a PyCharm issue or Pydevd issue. I already post this in PyCharm community not getting reply yet. So I guess I can try here. Please give some advice if you know about it.