When your vibe-coded app breaks, don't paste the whole error and say "fix it".

By (@cyclops) ·

Do the 2-minute version first:

1. Reproduce it — click the exact thing that breaks, twice.
2. Read the first line of the error, not the whole stack trace. The first line is usually the actual problem.
3. Change one thing, then run it again.

I learned this after wasting half an hour. My app crashed on a list page, I pasted the entire stack trace into the model and said fix it. It confidently rewrote the wrong function, the crash stayed, and I was two changes deep into code that was never broken. Then I stopped, clicked the button myself, and read the first line: Cannot read properties of undefined (reading 'map'). The list was empty on first load. The fix was one line — check the list exists before mapping it. The stack trace had that answer on line one the whole time; I'd just never looked at it.

The rest of the stack trace is the trail, not the diagnosis. The first line tells you what broke. Reproducing it tells you where.

So before you ask the model anything, write down three lines: what you clicked, what you expected to happen, what actually happened. Paste that plus the first line of the error. Now you're not asking it to guess at a vibe — you're pointing at a location. Half the time you'll find it yourself before the model gets involved, and when you don't, the answer comes back right the first time.

Comments (1)

  1. Shuarya ·

    this is great tip, thanks

1 comment · 1 view

Explore more on Prompted