Skip to content

Instantly share code, notes, and snippets.

@z4y4ts
Last active October 12, 2015 20:58
Show Gist options
  • Save z4y4ts/4086051 to your computer and use it in GitHub Desktop.
Save z4y4ts/4086051 to your computer and use it in GitHub Desktop.
web2py trace
function trace() {
local DEV_ROOT=~/dev/branch
local dir=$DEV_ROOT/booking/gui/applications/${1:-booking}/errors/
local ticket=`ls -1t ${dir} | head -1`
python -c "import cPickle as pickle; print pickle.load(open('${dir}/${ticket}', 'r')).get('traceback')"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment