Debugging and Code Review
Turn a vague failure report into a reproduction, isolate the cause, form and falsify hypotheses, instrument the code, fix async and state bugs, lock the fix behind a regression test and review changes for real trade-offs.
What you will be able to do
#- Convert a bug report into a deterministic reproduction with state, actions, observed and expected results.
- Read an error type, message and stack to locate the first frame in your own code.
- Isolate a trigger by bisecting inputs, code paths and commits.
- Write a falsifiable hypothesis and run the cheapest test that could disprove it.
- Instrument code with structured logs, breakpoints and assertions without flooding production.
- Diagnose state bugs caused by mutation, stale snapshots and duplicated state.
- Diagnose async bugs caused by missing awaits, races and ordering.
- Lock a fix behind a regression test that fails before and passes after.
- Measure and fix performance regressions instead of optimising by intuition.
- Run a blameless incident review with a timeline, trigger, cause and testable action items.
- Review a change for correctness, boundaries, performance, security and tests, and separate blocking issues from nits.
- Find and fix race conditions in shared mutable state and unsafe retries.
- Reproduce an environment-dependent bug by capturing runtime, build mode, configuration and locale.
- Find and fix a memory leak caused by an unreleased listener, timer, subscription or unbounded cache.
- Handle network and offline states explicitly, with cancellable requests and safe retries.
- Validate untrusted data at the boundary instead of trusting its shape.
- Reproduce and fix an accessibility bug with a keyboard or screen-reader path.
- Review a change for injection, leaked secrets, missing authorisation and open redirects.
- Triage a flaky test by measuring its rate and fixing the cause instead of adding a retry.
- Follow a request across services with a propagated trace id and find the failing span.
Prerequisites
#- JavaScript Foundations
- Testing and Quality Engineering Assertions, async and timer tests run JavaScript, and the capstone is a JavaScript task board.
Lessons
#Reproduce the failure
beginner · 30 minutes · 2 exercises
Write a reproduction with starting state, exact actions, observed result and expected result.
Read the error before you read the code
beginner · 30 minutes · 2 exercises
Identify an error by its type, message and stack.
Isolate by bisection
beginner · 35 minutes · 2 exercises
Shrink a failing case by halving the input or the code path.
Hypothesis and falsification
intermediate · 35 minutes · 2 exercises
Rewrite a vague guess as a specific, testable hypothesis.
Instrumentation: logs, breakpoints and assertions
intermediate · 40 minutes · 2 exercises
Choose between a breakpoint, a structured log and an assertion for a given bug.
State bugs: mutation, stale snapshots and duplication
intermediate · 40 minutes · 2 exercises
Recognise a state bug caused by in-place mutation.
Async bugs: missing awaits, races and ordering
intermediate · 45 minutes · 2 exercises
Find a missing await that lets a function return too early.
Regression tests: lock the fix
intermediate · 40 minutes · 2 exercises
Write a regression test that fails before the fix and passes after.
Performance regressions
advanced · 45 minutes · 2 exercises
Establish a measured baseline before changing performance code.
Production incident review
advanced · 45 minutes · 2 exercises
Build a timeline that separates the trigger from the cause.
Code review and trade-offs
advanced · 45 minutes · 2 exercises
Review a change for correctness, boundaries, performance, security and tests.
Concurrency and race conditions
advanced · 45 minutes · 2 exercises
Identify a read-modify-write race on shared state.
Reproduce the environment, not just the code
intermediate · 40 minutes · 2 exercises
Capture the runtime, dependency and configuration facts that a bug depends on.
Memory leaks
intermediate · 40 minutes · 2 exercises
Recognise the common shapes of a leak: listeners, timers, subscriptions and unbounded caches.
Network and offline behaviour
intermediate · 40 minutes · 2 exercises
Tell a timeout, an abort, a client error, a server error and an offline state apart.
Data and validation bugs
intermediate · 40 minutes · 2 exercises
Find a bug caused by trusting the shape of external data.
Accessibility bug hunts
intermediate · 40 minutes · 2 exercises
Reproduce an accessibility bug with a keyboard path or an assistive technology.
Security review of a change
advanced · 40 minutes · 2 exercises
Trace untrusted input to the place it is used and check the trust boundary.
Test flake triage
advanced · 40 minutes · 2 exercises
Measure a flaky test's failure rate before changing it.
Cross-service tracing
advanced · 40 minutes · 2 exercises
Follow one request across services using a propagated trace id.
Study journeys
#Skip-ahead journeys never remove a requirement. The prerequisite graph always reports the full chain; a skip-ahead course only marks where an assessment may substitute for study.
Quality engineering track
QA or test automation engineer
Move from assertions to unit, component, API, integration and end-to-end gates, then wire them into delivery.
- JavaScript Foundationsskip by assessment
- Testing and Quality Engineering
- CI/CD and Delivery Engineering
- Debugging and Code Reviewyou are here
Advanced canonical resources
Experienced engineer skip-ahead
Senior frontend engineer refreshing depth
Bypass React fundamentals by assessment and go straight to rendering depth, browser internals, debugging and AI features.
- React and UI Engineeringskip by assessment
- Next.js App Router Mastery
- Browser Internals
- Debugging and Code Reviewyou are here
- AI Engineering
Next in this journey: AI Engineering