Script Valley
Debugging: A Systematic Approach
The Debugging Mindset/Assessment

Practice & Assessment

Test your understanding of The Debugging Mindset

Multiple Choice Questions

5
1

You change two things simultaneously and the bug disappears. What is the correct next step?

2

A bug appears in production but you cannot reproduce it locally. What is the FIRST action to take?

3

In a JavaScript stack trace, where should you look first for the bug?

4

Which of these is a properly formed debugging hypothesis?

5

What does a TypeError in JavaScript most directly indicate?

Coding Challenges

1
1

Write a Minimal Reproducible Example

Given the following broken function that processes a shopping cart array and crashes intermittently, isolate the bug into the smallest possible self-contained code snippet that reproduces the failure every time. Input: an array of cart items where some items have a missing price property. Output: a minimal code block (under 10 lines) that always throws the same error, plus one sentence naming the fault. Time estimate: 20 minutes.

Easy

Mini Project

1

Personal Bug Investigation Template

Build a plain-text or markdown debugging journal template that includes: a symptom capture section, a hypothesis table with columns for hypothesis, test, result, and status, a reproduction checklist covering environment, inputs, and steps, a time-box log, and a root cause summary field. Populate it with a real or invented bug scenario, filling every section with at least one entry. The template must be reusable for any future bug.

Easy