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

求 python 中能监控所有变量的值的所有变化的模块?

  •  
  •   pc10201 · Feb 17, 2014 · 7862 views
    This topic created in 4613 days ago, the information mentioned may be changed or developed.
    用python写程序
    业务逻辑有点复杂,变量一堆,感觉用pdb调试太慢而且太麻烦~

    有没有一个模块能监控所有变量的值的所有变化,甚至能监测到跳转到哪个函数?
    Supplement 1  ·  Feb 18, 2014
    4 replies  •  1970-01-01 08:00:00 +08:00
    ritksm
        1
    ritksm  
       Feb 17, 2014
    PyCharm调试很爽
    mengzhuo
        2
    mengzhuo  
       Feb 17, 2014
    不喜欢IDE的
    可以用ipdb,直接输入变量名查看。
    locals(), globals()两个函数,查看所有变量
    traceback模块中的print_stack(),查看call stack
    wolegequ
        3
    wolegequ  
       Feb 17, 2014
    围观
    chevalier
        4
    chevalier  
       Feb 18, 2014
    马克
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   884 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 18:32 · PVG 02:32 · LAX 11:32 · JFK 14:32
    ♥ Do have faith in what you're doing.