1

When running a bash script you can pass -x, and it will print out each line of the script as it executes. Is there anything similar in Python?

smci
  • 32,567
  • 20
  • 113
  • 146
jharrell
  • 53
  • 1
  • 1
  • 6
  • This might help: [Python debugging tips](http://stackoverflow.com/q/1623039/3776858) – Cyrus Oct 12 '16 at 19:47
  • You can also use [`sys.settrace`](http://www.dalkescientific.com/writings/diary/archive/2005/04/20/tracing_python_code.html). – unutbu Oct 12 '16 at 19:51

0 Answers0