From reading error messages and stack traces to reproducing and narrowing down, print, logging and assert, pdb and breakpoints, browser DevTools, common bug patterns, git bisect, and regression tests. Over 30 lessons you get to where you can reach the cause of a failure by procedure instead of guesswork. The Python and JavaScript examples run right in your browser, and every terminal output shown was actually produced.
about 5 hours in total (estimate)
The 30 lessons are split into 6 chapters. We recommend going in order from chapter 1, but feel free to dip into whatever catches your interest. Note: the Python in the editors runs inside your browser (Pyodide 0.26.4, Python 3.12). Terminal output was actually produced with Python 3.14, Node.js 26 and git 2.56; with other versions the wording of errors and the pdb display differ slightly. pdb, git bisect, browser DevTools and VS Code don't run inside the browser, so try them on your own machine. The DevTools and VS Code lessons explain the steps without screenshots.
Take this chapter's review quiz ›
Learn to split a bug into symptom, cause and fix, and to read Python and JavaScript error messages and stack traces calmly. You finish by reading and fixing a script that fails, one error at a time.
Take this chapter's review quiz ›
Turn a bug that "happens sometimes" into one you can trigger every time, and shrink it by cutting away what doesn't matter. Learn to form and test hypotheses and to halve the search with bisection, and finish by reducing a reported bug to a minimal example and fixing it.
Take this chapter's review quiz ›
Gather the tools for seeing the values and flow of a running program with your own eyes: effective print, logging you can leave in, assert to guard your assumptions, and pdb for stepping line by line. You finish by chasing a bug that makes stock go negative.
Take this chapter's review quiz ›
Take the debugger a step further, and learn to stop and inspect with the same ideas in the browser and in VS Code. Use conditional breakpoints, post-mortem debugging at the moment of a crash, the Console, Sources and Network panels of DevTools, and the VS Code debugger, then chase a bug in a JavaScript cart.
Take this chapter's review quiz ›
The bugs you meet again and again come in recognizable patterns. Learn to tell them from their symptoms: shared values and off-by-one boundaries, the traps of decimals, text and dates, async work that changes order, and leftovers and environment differences. You finish by fixing a script that mixes three patterns.
Take this chapter's review quiz ›
Go beyond finding and fixing: pinpoint from history when a bug came in, keep it from coming back, and record it so others can follow. Learn git bisect, the failing test written before the fix, measuring slowness, and writing reports and records, then take one bug from start to finish.
Once you finish all 30 lessons, build the safety net that catches bugs early in the testing course, get better at tracing causes through history in the Git course, or learn to see what is happening in production in the observability course. Membership unlocks every course.