Debug Code Issues
Analyze code for bugs and provide detailed debugging steps with explanations.
ChatGPTClaudeCopilotCodex
Debuggingdebuggingbug-fixcode-analysisby DevTools TeamJan 15, 2024
0upvotes
Variables
Prompt Template
Act as a senior {{language}} engineer with 10+ years of experience.
Analyze the following code for debugging issues:
```{{language}}
{{code}}
```
Please:
1. Identify any bugs or issues
2. Explain why each issue occurs
3. Provide fixed code
4. Suggest best practices to prevent similar issues
Other Useful Prompts
Kubernetes Debugging
Debug Kubernetes issues with detailed analysis and solutions.
ChatGPTClaude
Debuggingkubernetesdevopsdebugging
Generate Unit Tests
Create comprehensive unit tests with edge cases and mocks.
ChatGPTClaudeCopilotCodex
Testingtestingunit-testscoverage
Refactor Legacy Code
Transform legacy code into modern, maintainable patterns.
ChatGPTClaudeCopilot
Refactoringrefactoringmodernizationclean-code
Code Review Assistant
Perform thorough code reviews with actionable feedback.
ChatGPTClaudeCopilot
Code Reviewcode-reviewqualitybest-practices