推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
lishunan246
V2EX  ›  Python

PyCharm 不能 debug 是什么情况?

  •  
  •   lishunan246 · Oct 24, 2016 · 9911 views
    This topic created in 3668 days ago, the information mentioned may be changed or developed.

    之前一直 debug 好好的。今天突然就不行了。

    C:\Python27\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 2016.2.3\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 52873 --file D:/cv/main.py
    pydev debugger: process 11488 is connecting
    
    
    Process finished with exit code 1
    

    貌似 Connect 超时就退出了

    Windows 防火墙上 pycharm 和 python 应该都是允许通信的。

    是不是 Windows 10 更新了什么奇怪的东西?

    9 replies  •  2016-10-25 12:21:20 +08:00
    zhuangzhuang1988
    zhuangzhuang1988
    Oct 24, 2016
    1
    3 招就可以了,
    重启,重装 pycharm,重装 windows.
    wyntergreg
    wyntergreg
    Oct 24, 2016
    2
    这玩意经常出点错,我还遇见过 run 不起来提示 IP 占用的情况,无解,只好换了个 IP 。。。

    不过过几天又试了下一直用的 IP run ,又可以

    囧
    lishunan246
    lishunan246
    OP
    Oct 24, 2016
    3
    @wyntergreg 我是自己写的脚本,不是服务器后端,跟 ip 端口没什么关系。
    现在只能 run 不能 debug 无比蛋疼...
    wyntergreg
    wyntergreg
    Oct 24, 2016
    4
    @lishunan246 不是端口,是 IP 占用,换端口也起不来必须改 IP 地址

    比你这个还蛋疼。。。

    你这个把 pycharm 重启下可能就好了,再不行把电脑重启,或者把.idea 文件夹 rm 掉,都试试吧

    这玩意虽然收费,但是 bug 真的是不少

    4.x 经常卡顿, 5.x 的时候 shell 又经常调不起来,需要把 webserver run 一遍然后点关闭,再重启,才能调起 python shell

    反正大毛病没有,小毛病一堆

    蛋定吧慢慢搞搞就好了
    daya
    daya
    Oct 24, 2016
    5
    我用 Pycharm 连进 windows10 的 Linux 子系统里远程调试也是这个错误,不知道如何解决。
    liangeeks
    liangeeks
    Oct 25, 2016
    6
    @zhuangzhuang1988 是时候用 mac 啦
    zhuangzhuang1988
    zhuangzhuang1988
    Oct 25, 2016
    7
    @liangeeks Mac 下更加有问题, 动不动就有可能端口被重用了.
    liangeeks
    liangeeks
    Oct 25, 2016
    8
    @zhuangzhuang1988 我从未遇到
    zhuangzhuang1988
    zhuangzhuang1988
    Oct 25, 2016
    9
    @liangeeks 运气不错
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2782 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 05:15 · PVG 13:15 · LAX 21:15 · JFK 00:15
    ♥ Do have faith in what you're doing.