推荐学习书目
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
Edwards
V2EX  ›  Python

请教个问题, pycharm 断点调试

  •  
  •   Edwards · Jul 24, 2018 · 3550 views
    This topic created in 2877 days ago, the information mentioned may be changed or developed.

    今天调试一段代码,打了断点,debug 运行的时候,发现不进断点,是我姿势不对么?请教正确姿势

    4 replies    2018-07-26 14:03:25 +08:00
    saulshao
        1
    saulshao  
       Jul 24, 2018
    你...如果你别的断点能进去,只有一种可能:你的整个过程就没有执行断点部分的代码......
    hongyanfoxin
        2
    hongyanfoxin  
       Jul 24, 2018 via Android
    #1 说的可能性最大,特别是在循环内部的断点。还有两种可能性,一种是你打开了两个同名文件,一种是你设置了断点条件,不满足断点条件的情况下也不会停。
    Edwards
        3
    Edwards  
    OP
       Jul 24, 2018 via Android
    @saulshao 我在 if else 这两个地方打的断点。然后 debug 怎么都不进断点。我确定代码已经执行了。
    KeatingSmith
        4
    KeatingSmith  
       Jul 26, 2018
    上动态图

    要么就是没执行到断点的位置。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   962 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 19:30 · PVG 03:30 · LAX 12:30 · JFK 15:30
    ♥ Do have faith in what you're doing.