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'm not interested in a trace decorator.
In Ruby, I could alias the method I wanted and add the extra behaviour there.
Have a look at the trace module.
You can also use it via the command line:
python -m trace --help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With