Unable to use Remote Debugging feature.
Hi Team,
I am facing problem using connecting to the remote debugger and the details are as follows:
I am using Mac 10.8.5 and Python 2.7.
When I started the Remote Debugger via Pycharm and the following is the console output.
In my application, the code to connect the remote debugger is as follows:
When I start my application, I am getting the following error:
I am unable to do remote debugging.
Would really appreciate any help on this.
I am facing problem using connecting to the remote debugger and the details are as follows:
I am using Mac 10.8.5 and Python 2.7.
When I started the Remote Debugger via Pycharm and the following is the console output.
Starting debug server at port 5678
Waiting for connection...
Use the following code to connect to the debugger:
import pydevd
pydevd.settrace('localhost', port=5678, stdoutToServer=True, stderrToServer=True, suspend=False)
In my application, the code to connect the remote debugger is as follows:
import pydevd
pydevd.settrace('localhost',
port=5678,
stdoutToServer=True,
stderrToServer=True)
When I start my application, I am getting the following error:
Could not connect to localhost: 5678 Traceback (most recent call last): File "/Library/Python/2.7/site-packages/pycharm-debug.egg/pydevd_comm.py", line 434, in StartClient s.connect((host, port)) File "/Library/Python/2.7/site-packages/eventlet/greenio.py", line 192, in connect while not socket_connect(fd, address): File "/Library/Python/2.7/site-packages/eventlet/greenio.py", line 39, in socket_connect raise socket.error(err, errno.errorcode[err]) error: [Errno 38] ENOTSOCK
2013-09-29 08:17:32.949 865 TRACE myapp.common.utils Traceback (most recent call last): 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils File "/Library/Python/2.7/site-packages/myapp/common/utils.py", line 441, in setup_remote_pydev_debug 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils stderrToServer=True) 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils File "/Library/Python/2.7/site-packages/pycharm-debug.egg/pydevd.py", line 1230, in settrace 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils _locked_settrace(host, stdoutToServer, stderrToServer, port, suspend, trace_only_current_thread, overwrite_prev_trace) 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils File "/Library/Python/2.7/site-packages/pycharm-debug.egg/pydevd.py", line 1256, in _locked_settrace 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils debugger.connect(host, port) 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils File "/Library/Python/2.7/site-packages/pycharm-debug.egg/pydevd.py", line 325, in connect 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils s = StartClient(host, port) 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils File "/Library/Python/2.7/site-packages/pycharm-debug.egg/pydevd_comm.py", line 445, in StartClient 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils sys.exit(1) #TODO: is it safe? 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils SystemExit: 1 2013-09-29 08:17:32.949 865 TRACE myapp.common.utils 2013-09-29 08:17:32.989 863 ERROR eventlet.wsgi.server [-] Not respawning child 865, cannot recover from termination
I am unable to do remote debugging.
Would really appreciate any help on this.
1 comment
Sort by
Date
Votes
Hi Venkatesh, currently PyCharm debugger doesn't support debugging of eventlet. You can vote for the request http://youtrack.jetbrains.com/issue/PY-7313 and be notified when it is resolved.
Please sign in to leave a comment.