pycharm继续连接到调试器并等待连接

时间:2018-09-05 03:19:47

标签: python pycharm pydev

pycharm继续连接到调试器并等待连接。 我使用python 2.7,环境变量包含'PYTHONUNBUFFERED = 1; PYCHARM_DEBUG = True'。
但是日志就像

/Users/suncong/.virtualenvs/lalala/bin/python2.7 /Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py --multiproc --client 127.0.0.1 --port 53235 --file 

/Users/suncong/sc_leetcode/three_sums.py
Using Cython speedups

Executing file /Users/suncong/sc_leetcode/three_sums.py
arguments: ['/Users/suncong/sc_leetcode/three_sums.py']
PYDEVD_FILTER_LIBRARIES False

Started in multiproc mode

('Connecting to ', '127.0.0.1', ':', '53235')
('Connected.',)
Traceback (most recent call last):
  File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 371, in _on_run
    r = self.sock.recv(1024)
error: [Errno 54] Connection reset by peer
Received port 53235

pydev debugger: process 6207 is connecting

('Connecting to ', '127.0.0.1', ':', '53235')
('Connected.',)
Traceback (most recent call last):
  File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 371, in _on_run
    r = self.sock.recv(1024)
error: [Errno 54] Connection reset by peer

我尝试删除名为.idea的文件夹,但是它不起作用。 重新启动计算机后,它可以正常工作,但过一会儿便恢复到上面的状态。

0 个答案:

没有答案