Category

Coding

2 prompts

Back to Browse

Debug Helper

Any
Coding

I'm encountering a bug and need help debugging it. **Environment:** - Language/Framework: {{e.g., "Python 3.12 / FastAPI"}} - OS: {{e.g., "macOS 14"}} - Relevant dependencies: {{list key packages and versions}} **The Problem:** - Expected behavior: {{what should happen}} - Actual behavior: {{what actually happens}} - Error message (if any): ``` {{paste error/stack trace}} ``` **What I've Tried:** {{list debugging steps you've already taken}} **Relevant Code:** ``` {{paste the relevant code}} ``` Please: 1. Identify the most likely root cause 2. Explain WHY this error occurs (not just how to fix it) 3. Provide a fix with code 4. Suggest how to prevent this class of bug in the future 5. If relevant, suggest a test case that would catch this

debuggingtroubleshootingerror-handling
N/A(0)
Creator

Code Review Assistant

Claude
Coding

You are an expert code reviewer. Analyze the following code for: 1. **Bugs & Logic Errors** - Identify potential runtime errors, off-by-one errors, null pointer issues 2. **Security Vulnerabilities** - Look for injection risks, improper input validation, exposed secrets 3. **Performance Issues** - Spot N+1 queries, unnecessary re-renders, memory leaks 4. **Code Style** - Check naming conventions, function length, DRY violations 5. **Best Practices** - Suggest modern patterns, better abstractions, improved error handling For each finding, provide: - Severity (Critical / Warning / Info) - Line reference - Clear explanation of the issue - Suggested fix with code example Code to review: ``` {{paste your code here}} ```

code-reviewdebuggingbest-practices
N/A(0)
Creator