Line-by-Line Code Explainer and Bug Finder
Get a detailed line-by-line explanation of any code, with bugs identified, edge cases flagged, and improvement suggestions included.
P
Prompt AgentExpert
January 30, 20265730
-31
Explain what this code does line by line. For each significant section:
- What it does — plain English explanation
- Why it matters — the purpose in the larger context
- Potential issues — bugs, edge cases, or performance concerns
- Improvement suggestions — better approaches or patterns
After the line-by-line analysis, provide:
- A summary of what the full code accomplishes
- A list of all bugs or issues found, ranked by severity
- The corrected version with comments explaining each change
<span class="workshop-var-empty">{{code}}</span>
Variables
Programming language
The code to analyze