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

Python 调试整理

  •  
  •   510908220 ·
    CallStorm · May 30, 2019 · 3802 views
    This topic created in 2679 days ago, the information mentioned may be changed or developed.

    整理了一下 python 调试的一些库的使用.

    1. pdb 类调试
    2. 日志类

    https://github.com/510908220/python-debugging-skills

    相信大家一定会喜欢上这些库的,确实方便多了。

    16 replies  •  2019-05-31 07:53:57 +08:00
    momo1999
        1
    momo1999  
       May 30, 2019   ❤️ 1
    不要给我说什么底层原理、框架内核!老夫调试只用 print
    leon0318
        2
    leon0318  
       May 30, 2019 via Android
    分布式调试除了看 log 别无他法了吧
    corvofeng
        3
    corvofeng  
       May 30, 2019 via Android
    本地调试我还是推荐 ipython embed
    510908220
        4
    510908220  
    OP
       May 30, 2019   ❤️ 1
    @leonme 但是用像 better-exceptions 这样的库,日志信息更完善,也是很有帮助的
    510908220
        5
    510908220  
    OP
       May 30, 2019
    @shuax 带上我
    510908220
        6
    510908220  
    OP
       May 30, 2019
    @corvofeng 我了解一下,谢谢
    GrassSand
        7
    GrassSand  
       May 30, 2019
    print 一把梭
    参考 https://www.dongwm.com/post/141/
    qq976739120
        8
    qq976739120  
       May 30, 2019
    本地 print,服务器上 log,三年了...
    chengxiao
        9
    chengxiao  
       May 30, 2019
    虽然感觉有很多调试库 但是还是 print 顺手啊.....
    xiaket
        10
    xiaket  
       May 30, 2019
    ytmsdy
        11
    ytmsdy  
       May 30, 2019 via iPhone
    直接 print 调试。。。
    simple2025
        12
    simple2025  
       May 30, 2019 via Android
    better-excepttion 和 tornado 在一起,有什么最佳实践吗
    smdbh
        13
    smdbh  
       May 30, 2019
    @shuax 膜拜插件大佬
    foxyier
        14
    foxyier  
       May 30, 2019
    @GrassSand 默默的从你的参考转到 python3.8 的新功能介绍。:=不是 go 的么。。
    xpresslink
        15
    xpresslink  
       May 30, 2019
    pdb 是什么?没听过。
    老夫只会 pycharm 行号上点个红点
    hmxxmh
        16
    hmxxmh  
       May 31, 2019 via Android
    @xpresslink 断点调试咯
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1173 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 17:23 · PVG 01:23 · LAX 10:23 · JFK 13:23
    ♥ Do have faith in what you're doing.