V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
julyclyde
V2EX  ›  Python

PyCharm的step over功能和框架一起用的时候……

  •  
  •   julyclyde ·
    julyclyde · Aug 26, 2013 · 5418 views
    This topic created in 4639 days ago, the information mentioned may be changed or developed.
    用PyCharm调试Flask应用,step over调试view函数,return之后,就开始单步执行Flask和wsgiref了

    能否在PyCharm的某个设置选项里声明site-packages目录内的文件为不须debug的?
    4 replies    1970-01-01 08:00:00 +08:00
    julyclyde
        1
    julyclyde  
    OP
       Aug 28, 2013 via iPad
    后来想了想,其实是因为框架在应用外面,所以用step over也躲不过
    还是在return那里直接continue吧
    chilaoqi
        2
    chilaoqi  
       Aug 28, 2013
    pycharm 能不能 remote debug啊?
    julyclyde
        3
    julyclyde  
    OP
       Aug 28, 2013
    @chilaoqi 可以。不过我还没学到那么高级的功能呢
    julyclyde
        4
    julyclyde  
    OP
       Oct 7, 2013
    后来发现自己二了,其实是因为我调试的是一个调用新浪微博API的程序,而他们刚刚限制了API能访问的范围,不允许查看“别人发的微博”,所以抛出异常,被框架捕捉到去产生错误页面去了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4169 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 05:12 · PVG 13:12 · LAX 22:12 · JFK 01:12
    ♥ Do have faith in what you're doing.