Bug? How to Improve

What to do when something goes wrong. How to approach debugging with Claude.

Don't Panic — Bugs Are Normal

Every app has bugs. Even professional engineers with decades of experience create bugs daily. A bug does not mean you did something wrong — it means your app is growing and you are building something real.

The good news: you have Claude. And Claude is excellent at fixing bugs when you give it the right information.

The Debugging Mindset

You do not need to understand the code to fix a bug. You need to:

  1. Observe — What exactly is happening? What did you expect instead?
  2. Gather information — Is there an error message? Where does it appear?
  3. Describe it to Claude — The more specific you are, the faster the fix.

What Kind of Bug Is It?

Use this table to identify your bug type and go to the right page:

What You SeeBug TypeGo To
App runs but gives wrong resultsLogic BugLogic Bugs
Error message in the browserFrontend ErrorFrontend Errors
Error in Railway deploy logs or 500 responseServer ErrorServer-Side Errors
Visual glitches, flickering, wrong layoutGlitchGlitches
Works normally but breaks with unusual inputEdge CaseEdge Cases
Build fails, TypeScript error, deploy failsBuild ErrorBuild & Deploy Errors
Page loads but data is missing or emptyMissing DataData Not Showing Up

The Golden Rule: Copy the Error Message

Error messages are the most valuable debugging tool. When you see red text in the browser console, a failed build output, or an error in Railway logs — copy the entire error message and give it to Claude.

Do not try to interpret the error yourself. Do not paraphrase it. Copy the full text exactly as it appears.

How to Ask Claude for Help

General debugging prompt
Claude prompt
my-app-name: Something is wrong with my app. Expected behavior: [What should happen] Actual behavior: [What actually happens] Here is the error message (if any): [Paste the full error message] Please help me understand what went wrong and fix it.
When there is no error message
Claude prompt
my-app-name: The app is not working correctly but there is no error message. - Expected behavior: [what should happen] - Actual behavior: [what actually happens] - Steps to reproduce: [what I click or do to trigger the problem] Can you investigate and suggest a fix?

Quiz

Quiz

What is the MOST helpful thing you can give Claude when asking for debugging help?