Debug Any Error Message
Paste an error message and the related code to get the likely root cause, a fix, and how to prevent it next time.
The Prompt — replace [BRACKETS] with your details
Act as a debugging expert. Help me fix this error. Language/framework: [LANGUAGE/FRAMEWORK] What I was trying to do: [SHORT DESCRIPTION] What I already tried: [WHAT YOU TRIED, or "nothing yet"] Error message: ``` [PASTE FULL ERROR MESSAGE / STACK TRACE] ``` Relevant code: ``` [PASTE THE RELATED CODE] ``` Respond with: 1. The most likely root cause in plain language 2. The exact fix (show corrected code) 3. If you're not certain, the top 2-3 hypotheses ranked by likelihood, each with a quick way to test it 4. One tip to avoid this class of bug in the future
How to use this prompt
- Always include the full stack trace — the last few lines matter most.
- Mention what you already tried so you don’t get the same suggestions back.
Works well with
Need a custom version of this prompt?
The free prompt generator builds a prompt tailored to your exact goal, framework, and target AI model — or paste this template into the optimizer to refine it.
Related prompts
Code Review Assistant
Paste code and get a structured review covering bugs, readability, performance, and securi…Unit Test Generator
Generate thorough unit tests for any function, covering happy paths, edge cases, and failu…Code Documentation Writer
Generate clear docstrings, inline comments where needed, and a README-style usage section …SQL Query Builder
Describe what data you need in plain English and get a correct, efficient SQL query with a…Sponsored
Revenue Signal
Visitor → payment → MRR
MRR
$9.4k
+18%
ARR
$112k
run rate
Net New
+$1.7k
this month
Subs
192
active
ARPU
$49
per account
Churn
3.2%
watchlist
new MRR
+$1.9k
expansion
+$620
reactivation
+$210
churn + contraction
-$790
Failed Payments
$820 at risk
Open Metrics
public page ready
Click-worthy signal
Turn the traffic your content earns into real revenue — see which visitors actually convert.
Find my MRR signal →