Prompt Library 💻 Coding & Dev Fix This Bug
Any 💻 Coding & Dev Basic

Fix This Bug

Describe a bug and get a fix with a full explanation of the root cause.
👁 7 views ⎘ 0 copies ♥ 0 likes

The Prompt

I have a bug in my code. Please identify the root cause and provide a corrected version with comments explaining what you changed and why.

Language: [language]
Expected behaviour: [what should happen]
Actual behaviour: [what is happening]
Error message (if any): [paste error]

Code:
```
[paste code here]
```

📝 Fill in the blanks

Replace these placeholders with your own content:

[language]
[what should happen]
[what is happening]
[paste error]
[paste code here]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into Any

Open your preferred AI assistant and paste the prompt to get started.