V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
ooleslie
V2EX  ›  Python

pycharm debug 的疑问

  •  
  •   ooleslie · 2019-01-17 18:15:34 +08:00 · 1667 次点击
    这是一个创建于 1897 天前的主题,其中的信息可能已经有所发展或是发生改变。
    爬虫新手,经常遇到用 pycharm 调试,然后到某个步骤,debug 就一下子没掉的情况,陷入一点头绪都没有的境地。。。想请教下大家,这样一般怎么处理。。
    4 条回复    2019-01-17 20:00:23 +08:00
    corningsun
        1
    corningsun  
       2019-01-17 18:29:02 +08:00   ❤️ 1
    试试 Evaluate Expression ?

    没开 Pycharm 拿 IDEA 截个图吧

    janxin
        2
    janxin  
       2019-01-17 18:43:19 +08:00 via Android
    没看懂呀?
    ooleslie
        3
    ooleslie  
    OP
       2019-01-17 18:57:15 +08:00
    @janxin 就是 debug 不是沿着断点一句一句的往下运行么。然后经常运行到某句的时候,整个 debug 的界面就断开,没法进行下去了
    ooleslie
        4
    ooleslie  
    OP
       2019-01-17 20:00:23 +08:00
    @janxin 今天遇到的情况搞明白了。。原来 scrapy 运行的时候要在 terminal,如果在 pycharm 中运行要特别指定 script
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5368 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:35 · PVG 16:35 · LAX 01:35 · JFK 04:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.