debugging - Is there a mode of python that traces each line executed, similar to 'bash -x'? -


i running python script in crontab works fine command line appears not running @ when runs in cron. if bash script, add 'bash -x' crontab , pipe stout , stderr log file. there similar mode of python capture execution of each individual line of code within script?

the trace module this.

python -m trace --trace yourscript.py 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -