Debug and Fix Error
Debugs errors and provides fixes with root cause analysis
Help me find and fix a bug in my code.
Language: {language}
Framework: {framework}
Code:
```{language}
{code}
```
Error:
```
{error}
```
What I expected: {expected}
What actually happened: {actual_result}
Please:
1. Explain the root cause of the error in plain language
2. Show the corrected code with comments
3. Explain why the fix works
4. Suggest how to prevent similar errors in the future
5. If there are related potential issues, point them out
0 copies
Variables
Replace these variables with your own values before using:
{язык}{фреймворк}{код}{ошибка}{ожидание}{результат}
Prompt info
💻
Category
Programming
AI model
Any model
Application
Быстрый поиск и исправление багов в коде
отладкаdebugбагиошибкиисправление
Similar prompts
SQL Query Builder
Builds SQL queries from natural language descriptions
Output: Complete, optimized SQL query with explanation. Context: {{DATABASE_TYPE...
💻 ProgrammingAny model
0 copies
Unit Test Generator
Creates comprehensive unit tests with edge case coverage
Write unit tests for the following code. Language: {language} Test framework: {...
💻 ProgrammingAny model
0 copies
Regex Pattern Creator
Creates regular expressions with detailed part-by-part explanations
Output: Complete regex pattern with test cases. Context: {{LANGUAGE}} regex, use...
💻 ProgrammingAny model
0 copies