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

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -