Stop 15 · MERN Projects & Interview PrepTopics · 7/8

Debugging Approach

Part of the MERN Stack Roadmap

In short

"How do you debug a production issue?" tests your process, not your luck. Interviewers want a calm, step-by-step method backed by evidence.

Interviewers want a calm, step-by-step method: reproduce the bug, read the error, narrow down the layer (React, network, Express or MongoDB), fix it and confirm.

The purple blob doctor listens to a sad laptop with a stethoscope.

Think of it like this

A good doctor's checkup

A good doctor doesn't prescribe medicine the moment you walk in. She asks about symptoms, checks your temperature, orders a test if needed, then treats the cause and tells you how to avoid it next time.

Watch it happen

Answering "how do you debug?"

Reproduce
Observe
Hypothesis
Test
Fix
Prevent

1/6"First I reproduce it: which endpoint, which users, since when. A bug I can trigger is half solved."

The big ideas

What you need to know

Reproduce first

Find exact steps or the exact request. Without a reproduction, you can't prove a fix.

What changed?

Deploys, config, traffic and dependencies. Most incidents follow a change, so check the timeline early.

Divide and conquer

Narrow it down by halves: client or server, which service, which function. git bisect does this for commits.

Write it down

A short post-incident note with cause, fix and prevention shows maturity in interviews and at work.

Save yourself the pain

Common mistakes

Oops

Answering "I add console.logs everywhere until I find it."

Do this instead

Logs are fine, but describe a method: reproduce, narrow down, test one hypothesis at a time.

Oops

Changing several things at once and redeploying.

Do this instead

Change one thing, then verify. Otherwise you never know what actually fixed it.

Your mission

Tell a real bug story

~30 min

Quick check

Errors jumped right after this afternoon's deploy. What's the best first step?

Go deeper

  1. 1Prepare a real story of a bug you fixed in one of your projects.
  2. 2Practise using the Network tab, server logs and breakpoints together.
  3. 3Explain how you would stop the same bug happening again.

Also part of these roadmaps

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge