Can I trace all the functions/methods executing in a python script?

前端 未结 1 1137
[愿得一人]
[愿得一人] 2020-12-10 15:42

Is there a way to programmatically trace the execution of all python functions/methods? I would like to see what arguments each of them was called with. I really mean all, I

1条回答
  •  我在风中等你
    2020-12-10 15:47

    Have a look at the trace module.

    You can also use it via the command line:

    python -m trace --help
    

    0 讨论(0)
提交回复
热议问题