Chain-of-Thought Debugger
Step-by-step code debugging prompt that asks AI to think through the problem before providing solutions
Content
Analyze the following code and error step by step: Code: ``` {{code}} ``` Error Message: ``` {{error_message}} ``` Instructions: 1. First, describe what the code is trying to do 2. Identify the exact line(s) causing the issue 3. Explain WHY the error occurs (root cause) 4. Propose 2-3 alternative fixes with trade-offs 5. Provide the corrected code Think through each step before answering.
Related Prompts
Chain-of-Thought Reasoning Generator
Generate step-by-step reasoning prompts that guide AI models through complex problem-solving with explicit logical steps.
SQL Query Optimizer
Optimize SQL queries for performance and best practices
Red Team Security Tester
Act as a red team attacker to identify vulnerabilities in systems, code, or proposals
Docker Deployment Guide Generator
Creates a complete Docker containerization and deployment guide for any application, including Dockerfile, docker-compose, CI/CD, and production best practices.