title: How do you see the execution of a programme line by line in python?
body: <p>Is there a way to see the details of the execution of a python file? I know that you can use logging, but obviously it would be unreasonable to set up the number of logs needed to see every line that's eventually executed. The python programme, of course, goes through the programme execution on a line by line basis, so to me, there must be a way to see the details of at the very least what line is being executed, and possibly where from.</p>
  
  <p>I imagine that something like this would be possible:</p>
  
  <pre><code>lineno (27) 'test_file'
  lineno (54) 'test_file'
  lineno (12) 'test_file'
  lineno (13) 'test_file'
  </code></pre>