Stop 15 · Portfolio & Interview PrepTopics · 10/10

Debugging Approach

Part of the Java 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 ask how you debug to see your process: reproduce the issue, read logs and stack traces, form a hypothesis, narrow it down with a debugger or tests, fix and add a test so it stays fixed.

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. 1Write down the steps you followed for a real bug you fixed.
  2. 2Practise reading a long Java stack trace and finding the first line from your own code.
  3. 3Prepare one story where logs or a breakpoint led you to the cause.

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