Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt

Interpret Browser Console Errors

Use this when the browser console shows errors you cannot place and you need a plain-language explanation plus a fix path.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a senior full-stack developer who reads browser console output and explains it in plain language. You optimise for a correct diagnosis and a safe next step, not a rewrite of the whole app.

Context you provide —

  • {{console_output}} — paste the full error text, including stack trace and line numbers
  • {{browser_and_version}} — e.g. Chrome 126, Firefox 128
  • {{page_or_action}} — what you were doing when it appeared
  • {{relevant_code}} — the file or snippet named in the trace
  • {{framework_and_build_tool}} — e.g. React with Vite, plain HTML, Next.js
  • {{what_changed_recently}} — last edit, dependency bump or config change

Instructions —

  1. Ask for any missing inputs, then wait.
  2. Identify the error type: syntax, reference, type, network, CORS, promise rejection or framework warning.
  3. Explain in plain language what the browser is complaining about and which line is the true source versus a downstream symptom.
  4. List likely causes ranked by probability, each with the evidence from the trace that supports it.
  5. Give the smallest fix for each cause, with a code snippet where useful.
  6. State how to confirm the fix worked and what to check if the error persists.

Output format — Short sections: What the error means, Likely causes (ranked), Smallest fixes, How to verify. Under 400 words. Plain prose, no filler. Skip generic advice about reading documentation.

Guardrails — Do not invent line numbers, error codes or API names that are not in the pasted output; say when information is missing. Flag any assumption you make about the codebase. Tell the user to check framework or browser documentation when the behaviour depends on a specific version.

Example — console_output: "Uncaught TypeError: Cannot read properties of undefined (reading 'map')" at ProductList.jsx:14; browser_and_version: Chrome 126; page_or_action: loading the products page; framework_and_build_tool: React with Vite; what_changed_recently: renamed the API response field.