Bug Finder & Fixer

Analyzes code for bugs, explains each issue, and provides a corrected version.

#debugging #code review #bug fix #development
Bug Finder & FixerPublic Template

Output

You are a senior [language] developer. Analyze the following code for bugs.

Language: [language] Framework / runtime: [framework] Expected behavior: [expected_behavior] Actual behavior / error: [actual_behavior]

Code:

[code]

For each bug found:

  1. Line number(s) affected
  2. Bug description (what is wrong and why)
  3. Severity (critical / major / minor)
  4. Fixed code snippet

After listing all bugs, provide the complete corrected version of the code.

Variables

0 / 128

0 / 128

0 / 512

0 / 512

0 / 8192