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.

Source summary

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.

This is a source-provided or source-derived summary, not original editorial analysis.

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.

Editorial record

Published by
University of AI India
Reviewed by
University of AI India
Source verified
Verification date pending
Last reviewed
Editorial review pending
AI assistance
No original editorial analysis published
Index status
Accessible, but excluded from search indexing until enriched

Report an error or missing context →Editorial ownership →

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.