PySnooper:永远不要再使用print进行调试

时间:2021-02-05 10:43:35
【文件属性】:
文件名称:PySnooper:永远不要再使用print进行调试
文件大小:56KB
文件格式:ZIP
更新时间:2021-02-05 10:43:35
python debugger logging debug introspection PySnooper-永远不要使用print进行调试 PySnooper是一个穷人的调试器。 如果您使用过Bash,则类似于Bash的set -x ,只是它比较高级。 您的故事:您正在试图弄清楚为什么您的Python代码没有按照您的预期去做。 您可能希望使用具有断点和监视功能的成熟调试器,但是现在不必烦恼设置一个调试器。 您想知道哪些行正在运行,哪些不在,以及局部变量的值是什么。 大多数人会在战略位置使用print线,其中一些显示变量的值。 PySnooper允许您执行相同的操作,除了只需要在感兴趣的功能上添加一条装饰线,而不是精心制作正确的print线。您将获得功能的逐条播放日志,包括
【文件预览】:
PySnooper-master
----.gitignore(116B)
----README.md(5KB)
----ADVANCED_USAGE.md(3KB)
----pysnooper()
--------variables.py(4KB)
--------pycompat.py(3KB)
--------utils.py(2KB)
--------__init__.py(812B)
--------tracer.py(19KB)
----tests()
--------test_chinese.py(1KB)
--------test_utils()
--------mini_toolbox()
--------test_pysnooper.py(54KB)
--------utils.py(12KB)
--------test_not_implemented.py(2KB)
--------test_multiple_files()
--------__init__.py(61B)
--------samples()
--------test_mini_toolbox.py(304B)
----LICENSE(1KB)
----misc()
--------generate_authors.py(1KB)
--------IDE files()
----AUTHORS(356B)
----make_release.sh(113B)
----requirements.txt(132B)
----requirements.in(37B)
----MANIFEST.in(144B)
----setup.py(1KB)
----.travis.yml(795B)
----tox.ini(1KB)

网友评论