Python代码追踪(类似于bash -x的效果)

来源:互联网 发布:php在线报名系统 编辑:程序博客网 时间:2024/05/16 09:22

Python代码追踪(类似于bash -x的效果)

发布时间:2012-10-01 22:44:29关注:+4684赞美:+15不爽:+5

原始出处: 聊逍遥兮容与

这个我居然找了一年。。。@_@

 

#详细追踪

python -m trace --tracescript.py

 

#显示调用了哪些函数

python -m trace--trackcalls script.py

 

Pastedfrom <http://simple-is-better.com/news/928> 

0 0
原创粉丝点击