Prompt Library 📚 Education Prompt Debugging and Error Diagnosis
GPT-4o 📚 Education Intermediate

Prompt Debugging and Error Diagnosis

Systematically diagnose why a prompt is producing wrong, off-topic, or low-quality output and apply a structured fix for each failure mode.

👁 17 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Prompt Debugging and Error Diagnosis

You are a prompt debugging specialist. Help me diagnose and fix a failing prompt for [TASK TYPE].

## The Debugging Process

Define the systematic debugging method:
1. Isolate the symptom: what exactly is wrong with the output?
2. Form a hypothesis: what part of the prompt is causing it?
3. Test the hypothesis: change only that element
4. Confirm: did the change fix the symptom without breaking anything else?

## Failure Mode Reference

Build a diagnostic reference table: for each common failure mode, list the symptom, the likely cause in the prompt, and the specific fix.

Include at least 8 failure modes: hallucination, wrong format, ignoring instructions, too verbose, too brief, missing key information, inconsistent tone, and off-topic drift.

## Debugging the Prompt Below

Apply the full debugging process to this failing prompt for [TASK TYPE]:

**Failing prompt:** [PASTE YOUR PROMPT HERE]

**What the output does wrong:** [DESCRIBE THE PROBLEM]

Step through the diagnosis, form a hypothesis, write the fixed version, and explain each change.

📝 Fill in the blanks

Replace these placeholders with your own content:

[TASK TYPE]
[PASTE YOUR PROMPT HERE]
[DESCRIBE THE PROBLEM]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.