Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法以编程方式跟踪所有 python 函数/方法的执行?我想看看他们每个人都用什么参数来调用。我真的是说所有,我对跟踪装饰器不感兴趣。
在 Ruby 中,我可以为我想要的方法设置别名并在那里添加额外的行为。
看看跟踪模块。
您也可以通过命令行使用它:
python -m trace --help