Systematically Retrieve the Flow of Execution in a Python Script

Is there a Python programmatic way to retrieve the flow of execution of a (large) Python script calling functions from a huge Python project? I mean a way to know which file, module, and functions among many is being called one after the other.

Note: I do not look for putting comments manually in different files. Also not interested in using a step in a debug tool.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum