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

#详细追踪
python -m trace --trace script.py

#显示调用了哪些函数
python -m trace --trackcalls script.py
原文地址:https://www.cnblogs.com/double12gzh/p/10166226.html