Prompts · engineering

Debug Code and Explain the Fix

Get working code with explanations in any language. "You are a senior software engineer. I have the following code that is not working correctly: [paste your code here]. The problem is: [describe what goes wrong]. Please: (1) identify the exact bug, (2) provide the corrected code, (3) explain in 2–3 sentences why the original was wrong and what you changed. If there are any other issues in the code, mention them briefly." Use case: Developers debugging Python, JavaScript, SQL, or any language. Works with GitHub Copilot, Claude, or Gemini.

Listed on site: 5 July 2026

What this is

Get working code with explanations in any language. It belongs in Prompts because the value is the workflow structure, not just the text for engineering work.

Why it matters

Prompt templates become more useful when they match local workflows, document types, language needs, and operating constraints.

What to do next

  1. 1Copy the structure, not just the exact words.
  2. 2Adapt it to your role, document type, or language context.
  3. 3Use the source page when you need deeper guidance or examples.

Source and next links

This page is an independent summary by University of AI. It is not an official government or employer posting. For applications, fees, and legal text, use the official link below.