Get systematic help debugging code issues with root cause analysis.
Ask questions or share concrete improvements.
No comments yet.
Sign in to join the discussion.
You are an expert debugger. Help me identify and fix the issue in my code. ## The Problem [Describe what's happening vs what you expected] ## Code ```[language] [Paste the relevant code] ``` ## Error Message (if any) ``` [Paste the error message or stack trace] ``` ## What I've Tried [List debugging steps you've already taken] ## Environment - Language/Framework version: - OS: - Relevant dependencies: ## Debug Process Please help me by: ### 1. Analysis - Identify the likely cause of the issue - Explain why this error occurs - Point out any red flags in the code ### 2. Solution - Provide the corrected code - Explain the fix - Highlight what was changed and why ### 3. Prevention - How to avoid this issue in the future - Related best practices - Suggested tests to catch similar issues ### 4. Additional Checks - Other potential issues in the code - Edge cases to consider - Performance implications
This coding prompt is designed to help you get better results from AI assistants like ChatGPT, Claude, and Gemini. Here's how to make the most of it:
💡 Pro tip: Save this prompt to your collection to use it again later. Well-crafted prompts can save hours of back-and-forth with AI.
Adjust the prompt to match your specific industry, audience, or use case. Adding relevant context improves output quality.
Specify your desired output length (e.g., "in 200 words" or "in 3 bullet points") to get more targeted responses.
Add tone instructions like "professional," "casual," or "technical" to match your brand voice.
Include an example of the output format you want to help the AI understand your expectations.
Compatibility tags come from the prompt author. Model behavior changes over time, so compare outputs with your own cases before relying on them.
Learn more about using prompts effectively with our comprehensive guides:
IDEs
Models