BestPromptFinder
Home › Coding › Debug a Production Error From Logs With Testable Hypotheses

Debug a Production Error From Logs With Testable Hypotheses

Coding · Claude, ChatGPT, Gemini · text
85AI Quality /100
92AI Usefulness est. /100
79Eval Confidence /100
No votes yetCommunity results

Quality, usefulness and confidence are AI evaluations out of 100 — not user ratings. Community results come from visitors' "worked / didn't work" votes below. How scoring works →

The prompt

Help me find the cause of this error using the logs. Work like an engineer: hypotheses first, then the cheapest test for each. Symptom: [what users see, since when, how often] Recent changes: [deploys, config changes, dependency updates, traffic changes] Environment: [language, framework, hosting, database] Logs: [paste the relevant lines with timestamps; remove secrets and personal data first] Stack trace (if any): [paste] What I've already tried: [ ] Give me: 1. A timeline of what the logs show, in plain words. 2. Three to five hypotheses ranked by likelihood. For each: the evidence for it, the evidence against it, and one quick test that would confirm or rule it out (a query, a log filter, a curl command, a config check). 3. What extra logs or metrics would separate the top two hypotheses if the evidence is thin. 4. Once a cause is likely: a minimal fix and a regression test. Rules: quote the log lines you rely on; don't claim a root cause the logs don't support; say "unknown" when it is.
Find similar in the app →
Did this prompt work for you?

Why this prompt

Source

Created by BestPromptFinder — editorial prompt, not user-generated. See our content & source policy.

Related Coding prompts

Python: Download a CSV From a URL
Quality 94 · GPT-5.6
Public-Market and Competitor Data Collection Agent
Quality 92 · GPT-5.6
Plain-English to SQL Query Writer
Quality 91 · GPT-5.6
PRD to MVP Technical Plan
Quality 90 · Claude Code
Third-Party API Integration
Quality 90 · Claude Code
Database Schema and Migration
Quality 90 · Claude Code