title: How do I print functions as they are called?
body: <p>In debugging a Python script, I'd really like to know the entire call stack for my entire program.  An ideal situation would be if there were a command-line flag for python that would cause Python to print all function names as they are called (I checked <code>man Python2.7</code>, but didn't find anything of this sort).</p>
  
  <p>Because of the number of functions in this script, I'd prefer not to add a print statement to the beginning of each function and/or class, if possible.</p>
  
  <p>An intermediate solution would be to use PyDev's debugger, place a couple breakpoints and check the call stack for given points in my program, so I'll use this approach for the time being.</p>
  
  <p>I'd still prefer to see a complete list of all functions called throughout the life of the program, if such a method exists.</p>