Skip to article content
FrontendXLearning path

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.

intermediate · 20 lessons · 40 exercises · about 800 minutes

  • Predict
  • Explain
  • Implement
  • Debug
  • Test
  • Interview

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

#

Lessons

#
  1. Reproduce the failure

    beginner · 30 minutes · 2 exercises

    Write a reproduction with starting state, exact actions, observed result and expected result.

  2. Read the error before you read the code

    beginner · 30 minutes · 2 exercises

    Identify an error by its type, message and stack.

  3. Isolate by bisection

    beginner · 35 minutes · 2 exercises

    Shrink a failing case by halving the input or the code path.

  4. Hypothesis and falsification

    intermediate · 35 minutes · 2 exercises

    Rewrite a vague guess as a specific, testable hypothesis.

  5. Instrumentation: logs, breakpoints and assertions

    intermediate · 40 minutes · 2 exercises

    Choose between a breakpoint, a structured log and an assertion for a given bug.

  6. State bugs: mutation, stale snapshots and duplication

    intermediate · 40 minutes · 2 exercises

    Recognise a state bug caused by in-place mutation.

  7. Async bugs: missing awaits, races and ordering

    intermediate · 45 minutes · 2 exercises

    Find a missing await that lets a function return too early.

  8. Regression tests: lock the fix

    intermediate · 40 minutes · 2 exercises

    Write a regression test that fails before the fix and passes after.

  9. Performance regressions

    advanced · 45 minutes · 2 exercises

    Establish a measured baseline before changing performance code.

  10. Production incident review

    advanced · 45 minutes · 2 exercises

    Build a timeline that separates the trigger from the cause.

  11. Code review and trade-offs

    advanced · 45 minutes · 2 exercises

    Review a change for correctness, boundaries, performance, security and tests.

  12. Concurrency and race conditions

    advanced · 45 minutes · 2 exercises

    Identify a read-modify-write race on shared state.

  13. Reproduce the environment, not just the code

    intermediate · 40 minutes · 2 exercises

    Capture the runtime, dependency and configuration facts that a bug depends on.

  14. Memory leaks

    intermediate · 40 minutes · 2 exercises

    Recognise the common shapes of a leak: listeners, timers, subscriptions and unbounded caches.

  15. 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.

  16. Data and validation bugs

    intermediate · 40 minutes · 2 exercises

    Find a bug caused by trusting the shape of external data.

  17. Accessibility bug hunts

    intermediate · 40 minutes · 2 exercises

    Reproduce an accessibility bug with a keyboard path or an assistive technology.

  18. Security review of a change

    advanced · 40 minutes · 2 exercises

    Trace untrusted input to the place it is used and check the trust boundary.

  19. Test flake triage

    advanced · 40 minutes · 2 exercises

    Measure a flaky test's failure rate before changing it.

  20. 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.

© 2026 FrontendX. All rights reserved.