Learn Debugging
Find disappearing updates and repair a real stateful task service.
Each chapter gives you working code with a fault in it. Reproduce the failure, trace the data to the cause, then repair it and prove the fix with tests, in Python, JavaScript or TypeScript.
Anyone can browse the path. The chapters are part of licode Club.
Chapters
- Build a minimal reproduction
- Find the off-by-one
- Missing is not empty
- Validate at the boundary
- Follow the decision tree
- Trace state over time
- Identity versus equality
- Make results deterministic
- Avoid mutation while iterating
- Parse without losing information
- Handle failures deliberately
- Retry only transient failures
- Test expiry with a fake clock
- Inspect dependency graphs
- Build a regression matrix
- Reproduce the incident
- Trace the boundary
- Repair the regression
- Protect the invariant
- Ship the regression suite