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