Debug with Context
Systematic debugging prompt that includes context, error details, and what you've already tried.
debuggingcross-modeldevelopment
Prompt
I'm getting this error in my {{framework}} app: ``` {{error message}} ``` Here's the relevant code: ``` {{code}} ``` What I've already tried: - {{attempted fix 1}} - {{attempted fix 2}} Explain the root cause and provide a working fix. If there are multiple possible causes, rank them by likelihood.
Variables to customize
{{framework}}{{error message}}{{code}}{{attempted fix 1}}{{attempted fix 2}}
Why this prompt works
Including what you've already tried prevents both models from suggesting obvious fixes. Asking to rank by likelihood gets you the most probable answer first.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Code Review Assistant
Get thorough code reviews with actionable feedback tailored to your language, framework, and standards.
Code Review with Specific CriteriaGet focused code review feedback with numbered criteria that works on both ChatGPT and Claude.
Explain Complex CodeGet a clear, leveled explanation of any code snippet — calibrated to your experience level.
API Design ReviewGet comprehensive API design feedback covering REST conventions, error handling, and auth patterns.