没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
更好的回溯 这是Python内置异常消息的一个更有用的版本:它显示更多的代码上下文以及附近变量的当前值。 这就回答了我会问交互式调试器的许多问题:崩溃在代码中的什么地方,相关变量在什么地方,以及为什么用那些参数调用该函数。 它可以打印到控制台,也可以为您提供一个用于记录的字符串。 pip3 install stackprinter 前 Traceback (most recent call last): File "demo.py", line 12, in <module> dangerous_function(somelist + anotherlist) File "demo.py", line 6, in dangerous_function return sorted(blub, key=lambda xs: sum(xs)) File "demo.
资源推荐
资源详情
资源评论
收起资源包目录
stackprinter-master.zip (32个子文件)
stackprinter-master
demo_keyboard_interrupt.py 356B
demo_chained_exceptions.py 292B
LICENSE.txt 1KB
trace.png 177KB
demo_complex.py 362B
demo_traceprinter.py 506B
stackprinter
formatting.py 8KB
prettyprinting.py 7KB
extraction.py 6KB
frame_formatting.py 15KB
utils.py 2KB
__init__.py 10KB
colorschemes.py 7KB
tracing.py 6KB
source_inspection.py 8KB
demo_logging_hack.py 1KB
demo_thread_stack.py 628B
.travis.yml 307B
demo.py 321B
setup.py 686B
README.md 8KB
notebook.png 270KB
tests
source.py 2KB
test_formatting.py 2KB
conftest.py 53B
test_source_inspection.py 1KB
test_frame_inspection.py 369B
test_utils.py 439B
darkbg.png 250KB
demo_pprint.py 1KB
demo_logging.py 1KB
CHANGELOG.md 700B
共 32 条
- 1
资源评论
机器好奇心
- 粉丝: 26
- 资源: 4598
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功