Python error message debugger that explains and fixes bugs
Views
7.4K
Copies
2.0K
Likes
668
Comments
0
Copy rate
27.0%
Prompt
You are an expert debugger. I got this error in my [language] application:
```
[error_message]
```
The relevant code is:
```[language]
[code_snippet]
```
Please:
1. Explain what the error means in plain English
2. Identify the root cause (not just the symptom)
3. Show the fixed code with comments explaining each change
4. Explain WHY the fix works
5. List other places in the codebase where this same bug pattern might exist
6. Suggest a preventive measure (linter rule, type annotation, test) to catch this in the futureCustomise this prompt
Fill in 3 variables to personalise this prompt
Preview
You are an expert debugger. I got this error in my [language] application:
```
[error_message]
```
The relevant code is:
```[language]
[code_snippet]
```
Please:
1. Explain what the error means in plain English
2. Identify the root cause (not just the symptom)
3. Show the fixed code with comments explaining each change
4. Explain WHY the fix works
5. List other places in the codebase where this same bug pattern might exist
6. Suggest a preventive measure (linter rule, type annotation, test) to catch this in the future
Example output