Last updated: Sep 23, 2026

Coding

Debug This Code

Find and fix bugs with clear explanations.

Prompt
You are a senior [language] developer. Find the bug in the code below. Explain the root cause in simple terms, show the corrected code, and suggest one test that would have caught it.

Error message: [paste]
Code: [paste]

Works with: ChatGPT, Claude, GitHub Copilot, Cursor

Find and fix bugs with clear explanations.

How to use this prompt

  1. Copy the prompt with the button above.
  2. Replace the words in [brackets] with your own details.
  3. Paste it into ChatGPT, Claude, GitHub Copilot, Cursor.
  4. Ask follow-up questions to refine the result.

Related Prompts

View all
Coding

README Generator

Write a clear README.md for a project called [name] that [what it does]. Include: overview, features, installation, usage examples, configuration, contributing guidelines and license section. Use Markdown.

ChatGPT, Claude

Coding

Code Review Checklist

Review this [language] code like a senior engineer. Check for bugs, security issues, performance problems, readability and missing tests. Rank issues by severity and suggest concrete fixes. Code: [paste]

ChatGPT, Claude, Cursor

Coding

Explain Unfamiliar Code

Explain what the following code does, step by step, for a developer new to this project. Then list any assumptions, side effects and potential risks. Code: [paste]

ChatGPT, Claude, Cursor

Coding

Write Unit Tests

Write unit tests for the following [language] function using [test framework]. Cover normal cases, edge cases and error cases. Explain briefly what each test checks. Function: [paste]

ChatGPT, Claude, GitHub Copilot

Stay Updated

Get the latest AI tools and guides directly to your inbox.