Debugging practice pieces
Learning to debug code is a critical skill in programming; debugging is one of the major components of any programmer's job. These practice pieces will both introduce classic errors, but also techniques for dealing with them.
- Getting it working / decomposition.
- Understanding messages from Python; see also this list of classic messages.
- Close reading.
- Using print.
- Using the debugger.
- At this stage, check out this list of practical advice on solving issues.
- Type hints.
- Using a profiler.
- Documentation.
- Doctests.
- Unit tests.
- Code management.
- Continuous integration.