DjangoCon Europe 2016 - Rub-a-Dub Rubber Duck: Don't be afraid to debug!

Speaker: Anna Ossowski (twitter) works on community and talent management at Eldarion. She is a director of the Python Software Foundation, PyCon Open Spaces-Chair, DjangoCon US Communications Chair, and group leader of the PyLadies Remote group.

Don't be afraid of Errors

Learn about them. Learn about the different error classes. Read about them. Provoke them. Raise them, catch them. Errors are good, without errors you won't learn, grow, …

A good attitude towards errors goes a long way to keep frustration at bay.

Try different debugging techniques

  • Comment out code to find errors
  • Break up code into methods to isolate errors
  • Rubber Duck: Talk it out. Explain the error (and frustration) to someone or something
  • Google with precise, meaningful phrases
  • Translate whatever the code does into your native language to find logical errors
  • Use tools to help you identify and prevent errors. IDEs, linters, style checker …