Interactive Debugging Practice
Diagnose authentic runtime failures, uncover root causes through Socratic guidance, and build true debugging autonomy.
Array Boundary Traversal
A function intended to sum all elements in an array returns NaN for non-empty arrays due to accessing an out-of-bounds index.
Truthy vs Strict Equality
A permission check helper grants or denies access based on user role and verification status, but unexpectedly denies access when a verified non-admin logs in.
Missing Return Path
A bonus calculation helper calculates bonus compensation according to performance tier, but returns undefined for employees with a 'good' rating.
Async Await Resolution
An order calculation function calls an asynchronous price lookup utility, but the final multiplication produces NaN instead of the total cost.
Accumulator State Reset
A utility calculates the sum of numbers for each sub-array row in a 2D matrix, but subsequent rows report inflated totals.