Skip to content

Instantly share code, notes, and snippets.

@elpargo
Created June 27, 2013 06:11
Show Gist options
  • Save elpargo/5874321 to your computer and use it in GitHub Desktop.
Save elpargo/5874321 to your computer and use it in GitHub Desktop.
Indice de la charla de PythonDominicana sobre Debugging
debug
print/pprint
logging
import pdb;pdb.set_trace()
import ipdb;ipdb.set_trace()
import code;code.interact(local=locals())
https://nose.readthedocs.org/en/latest/testing_tools.html#nose.tools.set_trace
nose --pdb or --pdb-failures
other functions in pdb/ipdb
other debuggers
http://winpdb.org/
https://code.google.com/p/pydbgr/
pydev - eclipse
an interesting trick
http://code.activestate.com/recipes/65287/
next gen?
lighttable
Web Debugger
weberror -> Paste
werkzeug.pocoo.org/docs/debug/
Django
django + django_extensions aka run_serverplus
detour into other cool things of extensions
NonDjango
run.py
cherrypy nah let Eneldo do that.
weberror
gunicorn+weberror https://github.com/Pylons/weberror
*_debugtoolbar
django_debugtoolbar
flask-debugtoolbar (haven't used it)
http://docs.pylonsproject.org/projects/pyramid_debugtoolbar/
Services
Sentry
profiling
http://docs.python.org/2/library/profile.html#instant-user-s-manual
profile Ivan's code?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment