#Debugging Python ##PyKC Monthly Meetup ###Thursday, April 24, 2014
#Caleb Hyde ##at Alight Analytics
#Approach
Just use print() statements!
#The CLI and iterative development
- Build incrementally, fail often
- iPython -- Not just for the browser!
#Stack traces
- source file, line number
- On Exceptions (only)
#Debuggery
- pdb (python debugger)
- pudb: visual debugger for the terminal
- Navigating the call stack
#Related
- log files
- Exception (dis)handling
- Tests
- Call-stack visualtizations
- Example: microsearch
#Further topics
- remote, network, and client-server debugging
- mobile device debugging
- Django debugging
- Debug toolbar
- Example: PyKC Website
