Windows上的Bash python无法连接到PyCharm调试器

时间:2017-03-13 16:49:47

标签: python pycharm pydev windows-subsystem-for-linux

Pycharm已经正确配置,python脚本可以正常运行,但是当使用调试功能时,一段时间后会显示此消息。

ssh://mike@127.0.0.1:22/home/mike/anaconda3/bin/python3.6 -u /home/mike/.pycharm_helpers/pydev/pydevd.py --multiproc --qt-support --client '0.0.0.0' --port 55439 --file /mnt/c/Users/mt/PycharmProjects/..***../mlp.py
Could not connect to 0.0.0.0: 55439
NoneType: None

Process finished with exit code 1

在运行cython加速之前,消息更加冗长,但有例外。

ssh://mike@127.0.0.1:22/home/mike/anaconda2/bin/python2.7 -u /home/mike/.pycharm_helpers/pydev/pydevd.py --multiproc --qt-support --client '0.0.0.0' --port 55730 --file /mnt/c/Users/mt/PycharmProjects/...***.../labeling.py
warning: Debugger speedups using cython not found. Run '"/home/mike/anaconda2/bin/python2.7" "/home/mike/.pycharm_helpers/pydev/setup_cython.py" build_ext --inplace' to build.
Could not connect to 0.0.0.0: 55730
Traceback (most recent call last):
  File "/home/mike/.pycharm_helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 527, in start_client
    s.connect((host, port))
  File "/home/mike/anaconda2/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused

Process finished with exit code 1

windows上的bash是否需要某种配置才能通过地址0.0.0.0与windows进行通信?

(不使用内幕构建)

0 个答案:

没有答案