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