Is there a pypi module or an equivalent to log everything python does while executing a script, say if a django app is rendering a page I want to have an account of everything like from where a custom template tag is getting loaded, which module(and from where on the pythonpath) is called and things like that.I want to use it to understand pre existing codes and also debugging purposes. May be everyone else is aware of how to do it except me.
Share
You can use the trace module to analyze execution. An example snippet:
pdb is the standard debugging tool.