Practical Debugging - Tips, Tricks and Ways to Think

Practical Debugging - Tips, Tricks and Ways to Think

EuroPython Conference via YouTube Direct link

Nothing's happening!

13 of 25

13 of 25

Nothing's happening!

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Practical Debugging - Tips, Tricks and Ways to Think

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Goal of this talk
  3. 3 There's an exception. Example: Text file with datetime intervals & python program that checks if there are any overlapping
  4. 4 Stack trace is a friend!
  5. 5 Now, lets run.
  6. 6 Debugger time!
  7. 7 ipdb/pdb • Interactive python debugger
  8. 8 Fixing the funciton
  9. 9 Test are passing. Lets try real world!
  10. 10 launch_ipdb_on_exception
  11. 11 Fix, tests passing, all good
  12. 12 Exception types Sometimes, the library or framework is going to tell you that you messed up
  13. 13 Nothing's happening!
  14. 14 Do the detective work. . You are in the dark and you need to find a source of light to guide you
  15. 15 Break it on purpose & try to get an exception
  16. 16 Code isolation is your friend
  17. 17 Common gothas
  18. 18 An example
  19. 19 Binary search debugging
  20. 20 Are your tests OK?
  21. 21 Do you need validation?
  22. 22 Is your algo OK? Are you using external library? Have you implemented
  23. 23 Do you understand the problem space well enough? You may be solving the wrong thing.
  24. 24 Explain your problem to someone
  25. 25 Parallel debugging

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.