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
kamushin
V2EX  ›  Python

介绍一些 Python 调试方法

  •  
  •   kamushin · 2016-05-21 15:45:45 +08:00 · 3738 次点击
    这是一个创建于 2868 天前的主题,其中的信息可能已经有所发展或是发生改变。
    上次提了这个问题 http://www.v2ex.com/t/278958, 没有结果, 自己研究了下 Python 怎么调试 hang 住的程序, 总结了一些方法, 希望能帮助到需要的人.
    http://kamushin.github.io/debug/python.html
    8 条回复    2016-05-22 23:00:35 +08:00
    ayaseangle
        1
    ayaseangle  
       2016-05-21 16:28:15 +08:00
    受用。
    joshz
        2
    joshz  
       2016-05-21 17:30:19 +08:00
    关于 Pelican 的审美,我们是一样的。
    kamushin
        3
    kamushin  
    OP
       2016-05-21 18:57:12 +08:00
    @joshz LOL
    mongost3t
        4
    mongost3t  
       2016-05-21 19:34:17 +08:00
    kamushin
        5
    kamushin  
    OP
       2016-05-21 20:46:06 +08:00
    @mongost3t 服的服的。这篇确实详实。
    timonwong
        6
    timonwong  
       2016-05-21 21:04:23 +08:00
    这种 hang 可以考虑一下 pyrasite 或者类似的。。
    kamushin
        7
    kamushin  
    OP
       2016-05-21 23:12:52 +08:00
    @timonwong 恩,这个我也试过. 不过还没好好摸清楚。只试过最简单的打开一个 console
    yongzhong
        8
    yongzhong  
       2016-05-22 23:00:35 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5339 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:52 · PVG 13:52 · LAX 22:52 · JFK 01:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.