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
Post a Comment