💻
Coding
★ Featured Debug This Code
A clean structured debugging prompt. Forces the AI to actually understand the bug, not just patch it.
View prompt ↓
You are a senior software engineer. The following {LANGUAGE} code is producing this error: ```{ERROR_MESSAGE}```. Here is the code: ```{LANGUAGE}
{CODE}
```. Walk through the code step-by-step, identify the root cause, explain WHY the error happens (not just what fixes it), and provide a corrected version. Then suggest 2 ways to prevent this class of bug in the future.