2016-12-13 1 views
1

PyCharm을 사용합니다. 파이썬 3.3에서 pydev 디버거를 빌드했다. python /Applications/PyCharm.app/Contents/helpers/pydev/setup_cython.py build_ext --inplace을 사용했다. 무효Python 업그레이드 후에 Pydev 디버거가 PyCharm에서 작동하지 않습니다.

/<venv_path>/bin/python3.5 /Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py --multiproc --save-signatures --qt-support --client 127.0.0.1 --port 58286 --file /Applications/PyCharm.app/Contents/helpers/pycharm/pytestrunner.py -p pytest_teamcity <pytest_root> <options> 
Testing started at 10:25 AM ... 
pydev debugger: process 94521 is connecting 

Connected to pydev debugger (build 163.8233.8) 
Traceback (most recent call last): 
    File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1596, in <module> 
    globals = debugger.run(setup['file'], None, None, is_module) 
    File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 956, in run 
    time.sleep(0.1) # busy wait until we receive run command 
KeyboardInterrupt 

내가 업데이트 된 파이썬 버전에서 setup_cython.py build_ext --inplace을 다시 실행 시도 : 나는 다음 메시지와 함께, 파이썬 3.5에서 새로운 가상 환경을 사용하고, 지금은 디버거가 실행되지 않습니다 내 프로젝트를 업데이트했다 내 캐시, 다시 시작, 내 .idea 폴더를 삭제하지만 위의 메시지를 해결할 수있는 방법은 없습니다.

+0

새로 복제 된 저장소에서 프로젝트를 생성하여 디버거 사용을 회수 할 수있었습니다. 이는 위에서 언급 한 모든 단계를 수행하여 PyCharm 프로젝트를 실제로 지우는 데 충분하지 않은 다른 캐시 된 객체가 있음을 의미합니다. 그 소스 파일의 외부 참조. 나는 아직도 누군가가이 문제를 해결했는지 알고 싶어한다. – Jon

답변

7

모든 저장된 중단 점을 지워서이 문제를 해결했습니다.

출시시 환경 변수 PYCHARM_DEBUG = True를 설정하면이 해결책이 적용됩니다.

+0

프로젝트를 다시 제작하고 이전 프로젝트를 삭제 한 이후로 후진을 위해 게시 해 주셔서 감사합니다. PyCharm의 중단 점 주변에 일부 부실한 참조 버그가 있다는 것을 알았 기 때문에 Intellij에서 본 적이 없습니다. – Jon

+0

두 번째 줄에'# - * - coding : utf-8 - * -'을 추가하여 동일한 문제를 해결합니다. –

관련 문제