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?
Asked
Active
Viewed 46 times
1
-
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