📝 Prompt

Bug Diagnosis & Fix

Analyze the following code and the described misbehavior:

Coding 💾 1 saves by PromptChief
Analyze the following code and the described misbehavior: **Error/Symptom:** [[ERROR_DESCRIPTION]] **Expected behavior:** [[EXPECTED_BEHAVIOR]] **Language/Framework:** [[LANGUAGE]] ``` [[SELECTED_TEXT]] ``` Proceed as follows: 1. Identify the root cause 2. Explain why the error occurs 3. Show the corrected code 4. Name measures to prevent similar bugs in the future
Share 𝕏 in LinkedIn WhatsApp Reddit

Use this prompt in one click

Save it, fill in the [[variables]], and inject it straight into ChatGPT, Claude or Gemini with the free PromptChief extension.

Open in Prompt Hub →

← Browse all prompts